blob: 0377a37c97cca7639fa6990858b41446fc153d2c [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}
Chia-I Wu770b3092014-08-05 14:22:03 +08005 ${LIBDRM_INTEL_LIBRARY_DIRS}
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -06006)
7
8link_libraries (
Chia-I Wu155be032014-08-02 09:14:28 +08009 ${LIBDRM_LIBRARIES}
Chia-I Wu770b3092014-08-05 14:22:03 +080010 ${LIBDRM_INTEL_LIBRARIES}
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060011 udev
12)
13
Chia-I Wu155be032014-08-02 09:14:28 +080014include_directories (
15 ${LIBDRM_INCLUDE_DIRS}
Chia-I Wu770b3092014-08-05 14:22:03 +080016 ${LIBDRM_INTEL_INCLUDE_DIRS}
Chia-I Wu155be032014-08-02 09:14:28 +080017)
18
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060019SET(SOURCES
Chia-I Wue54854a2014-08-05 10:23:50 +080020 dev.c
Chia-I Wu30c78292014-08-04 10:08:08 +080021 dispatch_tables.c
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060022 init_driver.c
Chia-I Wu9737a102014-08-07 07:59:51 +080023 event.c
Chia-I Wubdf4c562014-08-07 06:36:33 +080024 fence.c
Chia-I Wu214dac62014-08-05 11:07:40 +080025 gpu.c
Chia-I Wuf9911eb2014-08-06 13:50:31 +080026 mem.c
Chia-I Wu82f50aa2014-08-05 10:43:03 +080027 obj.c
Chia-I Wue18ff1b2014-08-07 13:38:51 +080028 query.c
Chia-I Wue09b5362014-08-07 09:25:14 +080029 queue.c
Chia-I Wu770b3092014-08-05 14:22:03 +080030 kmd/winsys_drm.c
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060031 )
32
33configure_file("${CMAKE_CURRENT_SOURCE_DIR}/GitSHA1.c.in"
34 "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.c" @ONLY)
35
36list(APPEND SOURCES "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.c" GitSHA1.h)
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060037
38add_library(XGL_i965 SHARED
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060039 ${SOURCES}
Chia-I Wu3065c9c2014-08-04 06:28:31 +080040 $<TARGET_OBJECTS:icd>
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060041 )
42
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060043# set_target_properties(i915_xgl PROPERTIES PREFIX "")