mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +00:00
LibEDID: Use correct paths for LibEDID generated files
Code generators that generate their files for both Lagom and Serenity have a blob in their CMake file like this: set(TIME_ZONE_DATA_HEADER LibTimeZone/TimeZoneData.h) set(TIME_ZONE_DATA_IMPLEMENTATION LibTimeZone/TimeZoneData.cpp) set(TIME_ZONE_META_TARGET_PREFIX LibTimeZone_) if (CMAKE_CURRENT_BINARY_DIR MATCHES ".*/LibTimeZone") # Serenity build. set(TIME_ZONE_DATA_HEADER TimeZoneData.h) set(TIME_ZONE_DATA_IMPLEMENTATION TimeZoneData.cpp) set(TIME_ZONE_META_TARGET_PREFIX "") endif() LibEDID generates files only for Serenity, but was using the Lagom build version of the _HEADER, _IMPLEMENTATION, and _PREFIX variables. Thus if pnp_ids.cmake was ever touched, the following error would be raised: Userland/Libraries/LibEDID/EDID.cpp:18:18: fatal error: LibEDID/PnpIDs.h: No such file or directory 18 | # include <LibEDID/LibEDID/PnpIDs.h> Use the Serenity paths in pnp_ids.cmake and in the #include within LibEDID itself.
This commit is contained in:
parent
1422187427
commit
99c8dadcec
2 changed files with 4 additions and 4 deletions
|
@ -9,9 +9,9 @@ if(ENABLE_PNP_IDS_DOWNLOAD AND NOT EXISTS ${PNP_IDS_EXPORT_PATH})
|
||||||
file(MAKE_DIRECTORY ${CMAKE_INSTALL_DATAROOTDIR})
|
file(MAKE_DIRECTORY ${CMAKE_INSTALL_DATAROOTDIR})
|
||||||
download_file("${PNP_IDS_URL}" "${PNP_IDS_EXPORT_PATH}")
|
download_file("${PNP_IDS_URL}" "${PNP_IDS_EXPORT_PATH}")
|
||||||
|
|
||||||
set(PNP_IDS_HEADER LibEDID/PnpIDs.h)
|
set(PNP_IDS_HEADER PnpIDs.h)
|
||||||
set(PNP_IDS_IMPLEMENTATION LibEDID/PnpIDs.cpp)
|
set(PNP_IDS_IMPLEMENTATION PnpIDs.cpp)
|
||||||
set(PNP_IDS_TARGET_PREFIX LibEDID_)
|
set(PNP_IDS_TARGET_PREFIX "")
|
||||||
|
|
||||||
invoke_generator(
|
invoke_generator(
|
||||||
"PnpIDsData"
|
"PnpIDsData"
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
|
|
||||||
# ifdef ENABLE_PNP_IDS_DATA
|
# ifdef ENABLE_PNP_IDS_DATA
|
||||||
# include <LibEDID/LibEDID/PnpIDs.h>
|
# include <LibEDID/PnpIDs.h>
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue