mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
Merge e050e63a09
into e2d5071e59
This commit is contained in:
commit
73b5ff633d
2
.gitignore
vendored
2
.gitignore
vendored
@ -80,3 +80,5 @@ tests/version
|
||||
tests/vulkan
|
||||
tests/windows
|
||||
|
||||
bii
|
||||
bin
|
@ -376,6 +376,11 @@ configure_file(src/glfw3.pc.in src/glfw3.pc @ONLY)
|
||||
#--------------------------------------------------------------------
|
||||
add_subdirectory(src)
|
||||
|
||||
IF(BIICODE)
|
||||
INCLUDE(biicode.cmake)
|
||||
return ()
|
||||
ENDIF()
|
||||
|
||||
if (GLFW_BUILD_EXAMPLES)
|
||||
add_subdirectory(examples)
|
||||
endif()
|
||||
@ -416,4 +421,3 @@ if (GLFW_INSTALL)
|
||||
"${GLFW_BINARY_DIR}/cmake_uninstall.cmake")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
@ -31,6 +31,13 @@ See the
|
||||
guide in the GLFW documentation.
|
||||
|
||||
|
||||
### Using GLFW with biicode
|
||||
|
||||
GLFW is available at [biicode](http://www.biicode.com) C/C++ dependency
|
||||
manager, you can find the [block here](http://www.biicode.com/diego/glfw), and
|
||||
[examples of use here](http://docs.biicode.com/c++/examples/glfw.html)
|
||||
|
||||
|
||||
## Reporting bugs
|
||||
|
||||
Bugs are reported to our [issue tracker](https://github.com/glfw/glfw/issues).
|
||||
|
26
biicode.cmake
Normal file
26
biicode.cmake
Normal file
@ -0,0 +1,26 @@
|
||||
INIT_BIICODE_BLOCK()
|
||||
|
||||
#Biicode defines its own targets. Include src CMakeLists to load variables
|
||||
#with the adequate source files depending on the system
|
||||
|
||||
FOREACH(var ${BII_LIB_SRC})
|
||||
STRING(REGEX MATCH "deps/.*\\.c" item ${var})
|
||||
IF(item)
|
||||
LIST(APPEND glfw_deps_SOURCES ${var})
|
||||
ENDIF()
|
||||
ENDFOREACH()
|
||||
SET(BII_LIB_SRC)
|
||||
SET(BII_LIB_DEPS glfw ${glfw_LIBRARIES})
|
||||
|
||||
if(glfw_deps_SOURCES)
|
||||
SET(BII_BLOCK_TARGET "${BII_BLOCK_USER}_${BII_BLOCK_NAME}_interface")
|
||||
ADD_LIBRARY(glfw_deps ${glfw_deps_SOURCES})
|
||||
target_include_directories(glfw_deps PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/deps)
|
||||
SET(BII_LIB_DEPS ${BII_LIB_DEPS} glfw_deps)
|
||||
endif()
|
||||
|
||||
# This defines the library (static), tests and examples executables
|
||||
ADD_BIICODE_TARGETS()
|
||||
|
||||
# to make transitive the location of includes
|
||||
target_include_directories(${BII_LIB_TARGET} INTERFACE ${GLFW_BINARY_DIR}/src)
|
22
biicode.conf
Normal file
22
biicode.conf
Normal file
@ -0,0 +1,22 @@
|
||||
# Biicode configuration file
|
||||
[requirements]
|
||||
|
||||
[parent]
|
||||
diego/glfw: 2
|
||||
|
||||
[paths]
|
||||
# locations in which biicode should look for includes
|
||||
deps
|
||||
include
|
||||
|
||||
[dependencies]
|
||||
# The main headers depend on all sources, and the src/CMakeLists.txt
|
||||
*glfw*.h + include/* src/* CMake/* *.in COPYING.txt
|
||||
# This has to be made explicit to avoid detection of dependency to system getopt.h
|
||||
deps/getopt.c + deps/getopt.h
|
||||
tests/* + deps/getopt.h
|
||||
examples/* + deps/getopt.h
|
||||
examples/boing.c - tests/*
|
||||
|
||||
[tests]
|
||||
tests/*
|
Loading…
Reference in New Issue
Block a user