mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-08 10:59:36 +00:00
Revert "Generate Bison output in CMake build tree"
This reverts commit 4577ff16bc.
This commit is contained in:
+12
-12
@@ -27,11 +27,13 @@ if(BISON_VERSION VERSION_GREATER_EQUAL "3.7")
|
|||||||
set(BISON_FLAGS "${BISON_FLAGS} -Wcounterexamples")
|
set(BISON_FLAGS "${BISON_FLAGS} -Wcounterexamples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
bison_target(asm_parser "asm/parser.y"
|
bison_target(ASM_PARSER "asm/parser.y"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/asm/parser.cpp"
|
"${PROJECT_SOURCE_DIR}/src/asm/parser.cpp"
|
||||||
COMPILE_FLAGS "${BISON_FLAGS}")
|
COMPILE_FLAGS "${BISON_FLAGS}"
|
||||||
|
DEFINES_FILE "${PROJECT_SOURCE_DIR}/src/asm/parser.hpp"
|
||||||
|
)
|
||||||
add_executable(rgbasm $<TARGET_OBJECTS:common>
|
add_executable(rgbasm $<TARGET_OBJECTS:common>
|
||||||
"${BISON_asm_parser_OUTPUT_SOURCE}"
|
"${BISON_ASM_PARSER_OUTPUT_SOURCE}"
|
||||||
"asm/actions.cpp"
|
"asm/actions.cpp"
|
||||||
"asm/charmap.cpp"
|
"asm/charmap.cpp"
|
||||||
"asm/fixpoint.cpp"
|
"asm/fixpoint.cpp"
|
||||||
@@ -52,14 +54,14 @@ add_executable(rgbasm $<TARGET_OBJECTS:common>
|
|||||||
"opmath.cpp"
|
"opmath.cpp"
|
||||||
"verbosity.cpp"
|
"verbosity.cpp"
|
||||||
)
|
)
|
||||||
cmake_path(GET BISON_asm_parser_OUTPUT_HEADER PARENT_PATH parser_header_dir)
|
|
||||||
target_include_directories(rgbasm PRIVATE "${parser_header_dir}")
|
|
||||||
|
|
||||||
bison_target(linker_script_parser "link/script.y"
|
bison_target(LINKER_SCRIPT_PARSER "link/script.y"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/link/script.cpp"
|
"${PROJECT_SOURCE_DIR}/src/link/script.cpp"
|
||||||
COMPILE_FLAGS "${BISON_FLAGS}")
|
COMPILE_FLAGS "${BISON_FLAGS}"
|
||||||
|
DEFINES_FILE "${PROJECT_SOURCE_DIR}/src/link/script.hpp"
|
||||||
|
)
|
||||||
add_executable(rgblink $<TARGET_OBJECTS:common>
|
add_executable(rgblink $<TARGET_OBJECTS:common>
|
||||||
"${BISON_linker_script_parser_OUTPUT_SOURCE}"
|
"${BISON_LINKER_SCRIPT_PARSER_OUTPUT_SOURCE}"
|
||||||
"link/assign.cpp"
|
"link/assign.cpp"
|
||||||
"link/fstack.cpp"
|
"link/fstack.cpp"
|
||||||
"link/lexer.cpp"
|
"link/lexer.cpp"
|
||||||
@@ -78,8 +80,6 @@ add_executable(rgblink $<TARGET_OBJECTS:common>
|
|||||||
"opmath.cpp"
|
"opmath.cpp"
|
||||||
"verbosity.cpp"
|
"verbosity.cpp"
|
||||||
)
|
)
|
||||||
cmake_path(GET BISON_linker_script_parser_OUTPUT_HEADER PARENT_PATH parser_header_dir)
|
|
||||||
target_include_directories(rgblink PRIVATE "${parser_header_dir}")
|
|
||||||
|
|
||||||
add_executable(rgbfix $<TARGET_OBJECTS:common>
|
add_executable(rgbfix $<TARGET_OBJECTS:common>
|
||||||
"fix/fix.cpp"
|
"fix/fix.cpp"
|
||||||
|
|||||||
Reference in New Issue
Block a user