blob: 818d762f547af2b470482c3a3008c7fb633dc9a2 [file] [log] [blame]
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -06001# Create the i965 XGL DRI library
2
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -06003link_directories (
Chia-I Wu155be032014-08-02 09:14:28 +08004 ${LIBDRM_LIBRARY_DIRS}
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -06005)
6
7link_libraries (
Chia-I Wu155be032014-08-02 09:14:28 +08008 ${LIBDRM_LIBRARIES}
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -06009 udev
10)
11
Chia-I Wu155be032014-08-02 09:14:28 +080012include_directories (
13 ${LIBDRM_INCLUDE_DIRS}
14)
15
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060016SET(SOURCES
17 init_driver.c
18 gpuinfo.c
19 )
20
21configure_file("${CMAKE_CURRENT_SOURCE_DIR}/GitSHA1.c.in"
22 "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.c" @ONLY)
23
24list(APPEND SOURCES "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.c" GitSHA1.h)
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060025
26add_library(XGL_i965 SHARED
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060027 ${SOURCES}
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060028 )
29
30IF(UNIX)
31 IF(CMAKE_COMPILER_IS_GNUCC)
32 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
33 ENDIF(CMAKE_COMPILER_IS_GNUCC)
34ENDIF(UNIX)
35
36# set_target_properties(i915_xgl PROPERTIES PREFIX "")