all repos — mgba @ a1c0318290b52302d919c33ce71763fc90353e4f

mGBA Game Boy Advance Emulator

CMake: Move gl.c and gles2.c to FEATURE_SRC
Vicki Pfau vi@endrift.com
Tue, 24 Nov 2020 22:26:45 -0800
commit

a1c0318290b52302d919c33ce71763fc90353e4f

parent

87d87b200fc3c792faf8bc1af8ffe640b60e1029

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -423,6 +423,7 @@

# Feature dependencies set(FEATURE_DEFINES) set(FEATURE_FLAGS) +set(FEATURE_SRC) set(FEATURES) set(ENABLES) if(CMAKE_SYSTEM_NAME MATCHES ".*BSD|DragonFly")

@@ -455,12 +456,12 @@ if(NOT BUILD_GLES2)

set(OPENGLES2_LIBRARY "" CACHE PATH "" FORCE) endif() if(BUILD_GL) - list(APPEND OS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/platform/opengl/gl.c) + list(APPEND FEATURE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/platform/opengl/gl.c) list(APPEND DEPENDENCY_LIB ${OPENGL_LIBRARY}) include_directories(${OPENGL_INCLUDE_DIR}) endif() if(BUILD_GLES2) - list(APPEND OS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/platform/opengl/gles2.c) + list(APPEND FEATURE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/platform/opengl/gles2.c) list(APPEND DEPENDENCY_LIB ${OPENGLES2_LIBRARY}) include_directories(${OPENGLES2_INCLUDE_DIR}) endif()

@@ -515,7 +516,6 @@ # Features

add_subdirectory(src/debugger) add_subdirectory(src/feature) -set(FEATURE_SRC) set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6") if(USE_EDITLINE)

@@ -715,7 +715,7 @@ list(APPEND FEATURES LZMA)

endif() if(USE_EPOXY) - list(APPEND OS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/platform/opengl/gl.c ${CMAKE_CURRENT_SOURCE_DIR}/src/platform/opengl/gles2.c) + list(APPEND FEATURE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/platform/opengl/gl.c ${CMAKE_CURRENT_SOURCE_DIR}/src/platform/opengl/gles2.c) add_definitions(-DBUILD_GL -DBUILD_GLES2) list(APPEND FEATURES EPOXY) include_directories(AFTER ${EPOXY_INCLUDE_DIRS})