mirror of
https://github.com/Yours3lf/rpi-vk-driver.git
synced 2024-11-28 10:24:15 +01:00
30 lines
715 B
CMake
30 lines
715 B
CMake
file(GLOB brcmSrc
|
|
"cle/*.h"
|
|
"cle/*.c"
|
|
"clif/*.h"
|
|
"clif/*.c"
|
|
"common/*.h"
|
|
"common/*.c"
|
|
"qpu/*.h"
|
|
"qpu/*.c"
|
|
)
|
|
|
|
find_program(python REQUIRED)
|
|
|
|
add_custom_command(
|
|
OUTPUT cle/v3d_packet_v21_pack.h
|
|
COMMAND python cle/gen_pack_header.py cle/v3d_packet_v21.xml 21 > cle/v3d_packet_v21_pack.h
|
|
DEPENDS cle/gen_pack_header.py cle/v3d_packet_v21.xml
|
|
WORKING_DIR ${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
add_custom_command(
|
|
OUTPUT cle/v3d_xml.h
|
|
COMMAND python /cle/gen_zipped_file.py cle/v3d_packet_v21.xml > cle/v3d_xml.h
|
|
DEPENDS /cle/gen_zipped_file.py cle/v3d_packet_v21.xml
|
|
WORKING_DIR ${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
add_library(brcm OBJECT ${brcmSrc})
|
|
target_compile_definitions(brcm PRIVATE V3D_VERSION=21)
|