Skip to content

Commit

Permalink
Converted png2bcd tool to python [Andrew Gardner]
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Jan 10, 2015
1 parent 7398118 commit fb5c151
Show file tree
Hide file tree
Showing 6 changed files with 3,116 additions and 455 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
src/regtests/chdman/temp
src/regtests/jedutil/output
/sta
*.pyc
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -991,9 +991,9 @@ $(OBJ)/%.lh: $(SRC)/%.lay $(SRC)/build/file2str.py
@echo Converting $<...
@$(PYTHON) $(SRC)/build/file2str.py $< $@ layout_$(basename $(notdir $<))

$(OBJ)/%.fh: $(SRC)/%.png $(PNG2BDC_TARGET) $(SRC)/build/file2str.py
$(OBJ)/%.fh: $(SRC)/%.png $(SRC)/build/png2bdc.py $(SRC)/build/file2str.py
@echo Converting $<...
@$(PNG2BDC) $< $(OBJ)/temp.bdc
@$(PYTHON) $(SRC)/build/png2bdc.py $< $(OBJ)/temp.bdc
@$(PYTHON) $(SRC)/build/file2str.py $(OBJ)/temp.bdc $@ font_$(basename $(notdir $<)) UINT8

$(DRIVLISTOBJ): $(DRIVLISTSRC)
Expand Down
27 changes: 0 additions & 27 deletions src/build/build.mak
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,18 @@ OBJDIRS += \
MAKEDEP_TARGET = $(BUILDOUT)/makedep$(BUILD_EXE)
MAKEMAK_TARGET = $(BUILDOUT)/makemak$(BUILD_EXE)
MAKELIST_TARGET = $(BUILDOUT)/makelist$(BUILD_EXE)
PNG2BDC_TARGET = $(BUILDOUT)/png2bdc$(BUILD_EXE)
VERINFO_TARGET = $(BUILDOUT)/verinfo$(BUILD_EXE)

MAKEDEP = $(MAKEDEP_TARGET)
MAKEMAK = $(MAKEMAK_TARGET)
MAKELIST = $(MAKELIST_TARGET)
PNG2BDC = $(PNG2BDC_TARGET)
VERINFO = $(VERINFO_TARGET)

ifneq ($(TERM),cygwin)
ifeq ($(OS),Windows_NT)
MAKEDEP = $(subst /,\,$(MAKEDEP_TARGET))
MAKEMAK = $(subst /,\,$(MAKEMAK_TARGET))
MAKELIST = $(subst /,\,$(MAKELIST_TARGET))
PNG2BDC = $(subst /,\,$(PNG2BDC_TARGET))
VERINFO = $(subst /,\,$(VERINFO_TARGET))
endif
endif
Expand All @@ -45,7 +42,6 @@ BUILD += \
$(MAKEDEP_TARGET) \
$(MAKEMAK_TARGET) \
$(MAKELIST_TARGET) \
$(PNG2BDC_TARGET) \
$(VERINFO_TARGET) \


Expand Down Expand Up @@ -106,26 +102,6 @@ $(MAKELIST_TARGET): $(MAKELISTOBJS) $(LIBOCORE) $(ZLIB)



#-------------------------------------------------
# png2bdc
#-------------------------------------------------

PNG2BDCOBJS = \
$(BUILDOBJ)/png2bdc.o \
$(OBJ)/lib/util/astring.o \
$(OBJ)/lib/util/corefile.o \
$(OBJ)/lib/util/corealloc.o \
$(OBJ)/lib/util/bitmap.o \
$(OBJ)/lib/util/png.o \
$(OBJ)/lib/util/palette.o \
$(OBJ)/lib/util/unicode.o \

$(PNG2BDC_TARGET): $(PNG2BDCOBJS) $(LIBOCORE) $(ZLIB)
@echo Linking $@...
$(LD) $(LDFLAGS) $^ $(BASELIBS) -o $@



#-------------------------------------------------
# verinfo
#-------------------------------------------------
Expand All @@ -147,9 +123,6 @@ $(MAKEDEP_TARGET):
$(MAKELIST_TARGET):
@echo $@ should be built natively. Nothing to do.

$(PNG2BDC_TARGET):
@echo $@ should be built natively. Nothing to do.

$(VERINFO_TARGET):
@echo $@ should be built natively. Nothing to do.

Expand Down
Loading

0 comments on commit fb5c151

Please sign in to comment.