Skip to content

Commit

Permalink
convert mapjson.py to mapjson.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
garakmon authored and huderlem committed Feb 3, 2019
1 parent 29d6221 commit 82abc16
Show file tree
Hide file tree
Showing 8 changed files with 1,592 additions and 390 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ SCANINC := tools/scaninc/scaninc$(EXE)
PREPROC := tools/preproc/preproc$(EXE)
RAMSCRGEN := tools/ramscrgen/ramscrgen$(EXE)
FIX := tools/gbafix/gbafix$(EXE)
MAPJSON := python tools/mapjson/mapjson.py
MAPJSON := tools/mapjson/mapjson$(EXE)

# Clear the default suffixes
.SUFFIXES:
Expand Down
1 change: 1 addition & 0 deletions build_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ make -C tools/aif2pcm CXX=${1:-g++}
make -C tools/ramscrgen CXX=${1:-g++}
make -C tools/gbafix CXX=${1:-g++}
make -C tools/mid2agb CXX=${1:-g++}
make -C tools/mapjson CXX=${1:-g++}
15 changes: 15 additions & 0 deletions tools/mapjson/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
CXX := g++

CXXFLAGS := -Wall -std=c++11 -O2

SRCS := json11.cpp mapjson.cpp

HEADERS := mapjson.h

.PHONY: clean

mapjson: $(SRCS) $(HEADERS)
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)

clean:
$(RM) mapjson mapjson.exe
Loading

0 comments on commit 82abc16

Please sign in to comment.