diff options
| author | Henny022p <info@henny022.de> | 2021-11-23 06:33:11 +0100 |
|---|---|---|
| committer | Henny022p <info@henny022.de> | 2021-11-23 06:33:11 +0100 |
| commit | 99c58ddf1d855e3cfa57c24f9f9a838005ab48a2 (patch) | |
| tree | 8b9695f7dbc1438991a551aabc2c9bee06138c4b /tools | |
| parent | 3cad3fe8e072a84aea8f633222e339537f3e61a8 (diff) | |
moved preproc
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/preproc/.gitignore | 1 | ||||
| -rwxr-xr-x | tools/preproc/Makefile | 20 | ||||
| -rw-r--r-- | tools/src/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | tools/src/preproc/CMakeLists.txt | 6 | ||||
| -rwxr-xr-x | tools/src/preproc/LICENSE (renamed from tools/preproc/LICENSE) | 0 | ||||
| -rwxr-xr-x | tools/src/preproc/asm_file.cpp (renamed from tools/preproc/asm_file.cpp) | 0 | ||||
| -rwxr-xr-x | tools/src/preproc/asm_file.h (renamed from tools/preproc/asm_file.h) | 0 | ||||
| -rwxr-xr-x | tools/src/preproc/c_file.cpp (renamed from tools/preproc/c_file.cpp) | 0 | ||||
| -rwxr-xr-x | tools/src/preproc/c_file.h (renamed from tools/preproc/c_file.h) | 0 | ||||
| -rwxr-xr-x | tools/src/preproc/char_util.h (renamed from tools/preproc/char_util.h) | 0 | ||||
| -rwxr-xr-x | tools/src/preproc/charmap.cpp (renamed from tools/preproc/charmap.cpp) | 0 | ||||
| -rwxr-xr-x | tools/src/preproc/charmap.h (renamed from tools/preproc/charmap.h) | 0 | ||||
| -rwxr-xr-x | tools/src/preproc/preproc.cpp (renamed from tools/preproc/preproc.cpp) | 0 | ||||
| -rwxr-xr-x | tools/src/preproc/preproc.h (renamed from tools/preproc/preproc.h) | 0 | ||||
| -rwxr-xr-x | tools/src/preproc/string_parser.cpp (renamed from tools/preproc/string_parser.cpp) | 0 | ||||
| -rwxr-xr-x | tools/src/preproc/string_parser.h (renamed from tools/preproc/string_parser.h) | 0 | ||||
| -rwxr-xr-x | tools/src/preproc/utf8.cpp (renamed from tools/preproc/utf8.cpp) | 0 | ||||
| -rwxr-xr-x | tools/src/preproc/utf8.h (renamed from tools/preproc/utf8.h) | 0 |
18 files changed, 7 insertions, 21 deletions
diff --git a/tools/preproc/.gitignore b/tools/preproc/.gitignore deleted file mode 100755 index eb347087..00000000 --- a/tools/preproc/.gitignore +++ /dev/null @@ -1 +0,0 @@ -preproc diff --git a/tools/preproc/Makefile b/tools/preproc/Makefile deleted file mode 100755 index 63dedda1..00000000 --- a/tools/preproc/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -CXX := g++ - -CXXFLAGS := -std=c++11 -O2 -Wall -Wno-switch -Werror - -SRCS := asm_file.cpp c_file.cpp charmap.cpp preproc.cpp string_parser.cpp \ - utf8.cpp - -HEADERS := asm_file.h c_file.h char_util.h charmap.h preproc.h string_parser.h \ - utf8.h - -.PHONY: all clean - -all: preproc - @: - -preproc: $(SRCS) $(HEADERS) - $(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS) - -clean: - $(RM) preproc preproc.exe diff --git a/tools/src/CMakeLists.txt b/tools/src/CMakeLists.txt index 2f0f141f..5d77a206 100644 --- a/tools/src/CMakeLists.txt +++ b/tools/src/CMakeLists.txt @@ -5,3 +5,4 @@ add_subdirectory(bin2c) add_subdirectory(gbafix) add_subdirectory(gbagfx) add_subdirectory(mid2agb) +add_subdirectory(preproc) diff --git a/tools/src/preproc/CMakeLists.txt b/tools/src/preproc/CMakeLists.txt new file mode 100644 index 00000000..f2674fae --- /dev/null +++ b/tools/src/preproc/CMakeLists.txt @@ -0,0 +1,6 @@ +file(GLOB_RECURSE sources *.cpp) + +add_executable(preproc ${sources}) +target_include_directories(preproc PRIVATE .) + +install(TARGETS preproc RUNTIME DESTINATION bin) diff --git a/tools/preproc/LICENSE b/tools/src/preproc/LICENSE index 534d1534..534d1534 100755 --- a/tools/preproc/LICENSE +++ b/tools/src/preproc/LICENSE diff --git a/tools/preproc/asm_file.cpp b/tools/src/preproc/asm_file.cpp index 213a5135..213a5135 100755 --- a/tools/preproc/asm_file.cpp +++ b/tools/src/preproc/asm_file.cpp diff --git a/tools/preproc/asm_file.h b/tools/src/preproc/asm_file.h index d73b36e9..d73b36e9 100755 --- a/tools/preproc/asm_file.h +++ b/tools/src/preproc/asm_file.h diff --git a/tools/preproc/c_file.cpp b/tools/src/preproc/c_file.cpp index d9775eb6..d9775eb6 100755 --- a/tools/preproc/c_file.cpp +++ b/tools/src/preproc/c_file.cpp diff --git a/tools/preproc/c_file.h b/tools/src/preproc/c_file.h index 7369aba8..7369aba8 100755 --- a/tools/preproc/c_file.h +++ b/tools/src/preproc/c_file.h diff --git a/tools/preproc/char_util.h b/tools/src/preproc/char_util.h index 02a6e1ce..02a6e1ce 100755 --- a/tools/preproc/char_util.h +++ b/tools/src/preproc/char_util.h diff --git a/tools/preproc/charmap.cpp b/tools/src/preproc/charmap.cpp index 45a6b50a..45a6b50a 100755 --- a/tools/preproc/charmap.cpp +++ b/tools/src/preproc/charmap.cpp diff --git a/tools/preproc/charmap.h b/tools/src/preproc/charmap.h index 0d752ac9..0d752ac9 100755 --- a/tools/preproc/charmap.h +++ b/tools/src/preproc/charmap.h diff --git a/tools/preproc/preproc.cpp b/tools/src/preproc/preproc.cpp index 3fd3ae6b..3fd3ae6b 100755 --- a/tools/preproc/preproc.cpp +++ b/tools/src/preproc/preproc.cpp diff --git a/tools/preproc/preproc.h b/tools/src/preproc/preproc.h index 1b1e1bdf..1b1e1bdf 100755 --- a/tools/preproc/preproc.h +++ b/tools/src/preproc/preproc.h diff --git a/tools/preproc/string_parser.cpp b/tools/src/preproc/string_parser.cpp index dd5196a4..dd5196a4 100755 --- a/tools/preproc/string_parser.cpp +++ b/tools/src/preproc/string_parser.cpp diff --git a/tools/preproc/string_parser.h b/tools/src/preproc/string_parser.h index abd2bfe9..abd2bfe9 100755 --- a/tools/preproc/string_parser.h +++ b/tools/src/preproc/string_parser.h diff --git a/tools/preproc/utf8.cpp b/tools/src/preproc/utf8.cpp index 7facfd44..7facfd44 100755 --- a/tools/preproc/utf8.cpp +++ b/tools/src/preproc/utf8.cpp diff --git a/tools/preproc/utf8.h b/tools/src/preproc/utf8.h index 259de67c..259de67c 100755 --- a/tools/preproc/utf8.h +++ b/tools/src/preproc/utf8.h |
