blob: 0334b995eef9cc2c503c9fb7c71ee79dbbb13f0f [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
Chia-I Wu30c78292014-08-04 10:08:08 +080017 dispatch_tables.c
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060018 init_driver.c
Chia-I Wu214dac62014-08-05 11:07:40 +080019 gpu.c
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060020 gpuinfo.c
Chia-I Wu82f50aa2014-08-05 10:43:03 +080021 obj.c
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060022 )
23
24configure_file("${CMAKE_CURRENT_SOURCE_DIR}/GitSHA1.c.in"
25 "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.c" @ONLY)
26
27list(APPEND SOURCES "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.c" GitSHA1.h)
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060028
29add_library(XGL_i965 SHARED
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060030 ${SOURCES}
Chia-I Wu3065c9c2014-08-04 06:28:31 +080031 $<TARGET_OBJECTS:icd>
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060032 )
33
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060034# set_target_properties(i915_xgl PROPERTIES PREFIX "")