source: Revenant/third-party/CMakeLists.txt@godot-cpp.patch@ 8125274

port/mars-tycoon
Last change on this file since 8125274 was 8125274, checked in by Jonathan Neufeld <support@…>, 3 years ago

(WIP) Introduction of GD Native module and Godot-CPP API sub-module

  • Property mode set to 100644
File size: 1.5 KB
  • CMakeLists.txt

    diff --git a/CMakeLists.txt b/CMakeLists.txt
    index f48b5b3..3f25491 100644
    a b else()  
    109109        set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wchar-subscripts -Wcomment -Wdisabled-optimization")
    110110        set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wformat -Wformat=2 -Wformat-security -Wformat-y2k")
    111111        set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wimport -Winit-self -Winline -Winvalid-pch -Werror")
    112         set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wlong-long -Wmissing-braces -Wmissing-format-attribute")
     112        set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wmissing-braces -Wmissing-format-attribute")
    113113        set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wmissing-include-dirs -Wmissing-noreturn -Wpacked -Wpointer-arith")
    114114        set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wredundant-decls -Wreturn-type -Wsequence-point")
    115115        set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wswitch -Wswitch-enum -Wtrigraphs")
    else()  
    131131endif()
    132132
    133133# Generate source from the bindings file
    134 message(STATUS "Generating Bindings")
    135 execute_process(COMMAND "python" "-c" "import binding_generator; binding_generator.generate_bindings(\"${GODOT_CUSTOM_API_FILE}\")"
     134message(STATUS "Generating Bindings using '${GODOT_CUSTOM_API_FILE}' with headers '${GODOT_HEADERS_DIR}'")
     135execute_process(COMMAND "python3" "-c" "import binding_generator; binding_generator.generate_bindings(\"${GODOT_CUSTOM_API_FILE}\", True)"
    136136        WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
    137137        RESULT_VARIABLE GENERATION_RESULT
    138138        OUTPUT_VARIABLE GENERATION_OUTPUT)
Note: See TracBrowser for help on using the repository browser.