[DEV] continue interation of GLD ==> for cmake compatibility
This commit is contained in:
parent
e98d901fa4
commit
21eb62613d
@ -9,12 +9,26 @@ encoding//lutin/multiprocess.py=utf-8
|
||||
encoding//lutin/system.py=utf-8
|
||||
encoding//lutin/target.py=utf-8
|
||||
encoding//lutin/tools.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Android_c.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Android_cxx.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Android_m.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_IOs_c.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_IOs_cxx.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Linux_alsa.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Linux_c.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Linux_cxx.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Linux_egl.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Linux_m.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Linux_mysql.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Linux_opengl.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Linux_pthread.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Linux_z.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_MacOs_Cocoa.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Windows_ole.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Windows_oleaut.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Windows_psapi.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Windows_shell.py=utf-8
|
||||
encoding//lutin/z_system/lutinSystem_Windows_start-mode-gui.py=utf-8
|
||||
encoding//lutin/z_target/lutinTarget_Android.py=utf-8
|
||||
encoding//lutin/z_target/lutinTarget_Debian.py=utf-8
|
||||
encoding//lutin/z_target/lutinTarget_IOs.py=utf-8
|
||||
|
20
cmake/CMakeLists.txt
Normal file
20
cmake/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
cmake_minimum_required(VERSION 3.20)
|
||||
project(GlobalSearch)
|
||||
|
||||
|
||||
message("List of modules: ${CMAKE_MODULE_PATH}")
|
||||
|
||||
#LIST(APPEND CMAKE_MODULE_PATH "cmake")
|
||||
|
||||
#find_package(GLDBuilder REQUIRED)
|
||||
|
||||
include("cmake/GLDBuilder.cmake")
|
||||
|
||||
#GLD_import("./" "etk-core")
|
||||
|
||||
get_filename_component(LOCAL_FILE_PATH "." ABSOLUTE)
|
||||
GLD_auto_prebuild_load_all("${LOCAL_FILE_PATH}")
|
||||
GLD_auto_load_all("${LOCAL_FILE_PATH}")
|
||||
|
||||
GLD_instanciate()
|
||||
|
1124
cmake/GLDBuilder.cmake
Normal file
1124
cmake/GLDBuilder.cmake
Normal file
File diff suppressed because it is too large
Load Diff
19
cmake/GLDPrebuild_Linux_alsa.json
Normal file
19
cmake/GLDPrebuild_Linux_alsa.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"type":"LIBRARY",
|
||||
"sub-type":"PREBUILD",
|
||||
"group-id":"gnu",
|
||||
"description":"ALSA : Advanced Linux Sound Architecture",
|
||||
"sanity-compilation": {
|
||||
"intricate": {
|
||||
"flag":{
|
||||
"c-link": "-lasound"
|
||||
},
|
||||
"dependency":[
|
||||
"c"
|
||||
]
|
||||
},
|
||||
"!intricate":{
|
||||
"error":true
|
||||
}
|
||||
}
|
||||
}
|
17
cmake/GLDPrebuild_Linux_c.json
Normal file
17
cmake/GLDPrebuild_Linux_c.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"type":"LIBRARY",
|
||||
"sub-type":"PREBUILD",
|
||||
"group-id":"gnu",
|
||||
"description":"C: Generic gnu C library",
|
||||
"license":"LGPL",
|
||||
"sanity-compilation": {
|
||||
"intricate": {
|
||||
"flag":[
|
||||
"c-remove": "-nostdinc"
|
||||
]
|
||||
},
|
||||
"!intricate":{
|
||||
"error":true
|
||||
}
|
||||
}
|
||||
}
|
23
cmake/GLDPrebuild_Linux_cxx.json
Normal file
23
cmake/GLDPrebuild_Linux_cxx.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"type":"LIBRARY",
|
||||
"sub-type":"PREBUILD",
|
||||
"group-id":"gnu",
|
||||
"description":"CXX: Generic gnu C++ library",
|
||||
"license":"LGPL",
|
||||
"sanity-compilation": {
|
||||
"intricate": {
|
||||
"flag":{
|
||||
"c++-remove": "-nostdlib",
|
||||
"c++": "-D__STDCPP_GNU__"
|
||||
},
|
||||
"dependency":[
|
||||
"c",
|
||||
"m",
|
||||
"pthread"
|
||||
]
|
||||
},
|
||||
"!intricate":{
|
||||
"error":true
|
||||
}
|
||||
}
|
||||
}
|
20
cmake/GLDPrebuild_Linux_m.json
Normal file
20
cmake/GLDPrebuild_Linux_m.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"type":"LIBRARY",
|
||||
"sub-type":"PREBUILD",
|
||||
"group-id":"gnu",
|
||||
"description":"M: Generic math library",
|
||||
"license":"LGPL",
|
||||
"sanity-compilation": {
|
||||
"intricate": {
|
||||
"flag":{
|
||||
"c-link": "-lm"
|
||||
},
|
||||
"dependency":[
|
||||
"c"
|
||||
]
|
||||
},
|
||||
"!intricate":{
|
||||
"error":true
|
||||
}
|
||||
}
|
||||
}
|
19
cmake/GLDPrebuild_Linux_opengl.json
Normal file
19
cmake/GLDPrebuild_Linux_opengl.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"type":"LIBRARY",
|
||||
"sub-type":"PREBUILD",
|
||||
"group-id":"org.opengl",
|
||||
"description":"OpenGL: Generic graphic library",
|
||||
"sanity-compilation": {
|
||||
"intricate": {
|
||||
"flag":{
|
||||
"c-link": "-lGL"
|
||||
},
|
||||
"dependency":[
|
||||
"c"
|
||||
]
|
||||
},
|
||||
"!intricate":{
|
||||
"error":true
|
||||
}
|
||||
}
|
||||
}
|
20
cmake/GLDPrebuild_Linux_pthread.json
Normal file
20
cmake/GLDPrebuild_Linux_pthread.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"type":"LIBRARY",
|
||||
"sub-type":"PREBUILD",
|
||||
"group-id":"gnu",
|
||||
"description":"pthread: Generic multithreading system",
|
||||
"license":"LGPL",
|
||||
"sanity-compilation": {
|
||||
"intricate": {
|
||||
"flag":{
|
||||
"c-link": "-lpthread"
|
||||
},
|
||||
"dependency":[
|
||||
"c"
|
||||
]
|
||||
},
|
||||
"!intricate":{
|
||||
"error":true
|
||||
}
|
||||
}
|
||||
}
|
19
cmake/GLDPrebuild_Linux_z.json
Normal file
19
cmake/GLDPrebuild_Linux_z.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"type":"LIBRARY",
|
||||
"sub-type":"PREBUILD",
|
||||
"group-id":"gnu",
|
||||
"description":"Z : z library ",
|
||||
"sanity-compilation": {
|
||||
"intricate": {
|
||||
"flag":{
|
||||
"c-link": "-lz"
|
||||
},
|
||||
"dependency":[
|
||||
"c"
|
||||
]
|
||||
},
|
||||
"!intricate":{
|
||||
"error":true
|
||||
}
|
||||
}
|
||||
}
|
@ -118,6 +118,9 @@ list_of_element_availlable=[
|
||||
"xxx/plouf.java"
|
||||
],
|
||||
"source": {
|
||||
"*": [
|
||||
...
|
||||
],
|
||||
"c": [
|
||||
...
|
||||
],
|
||||
@ -138,13 +141,18 @@ list_of_element_availlable=[
|
||||
"xxx/YuyTer.hpp"
|
||||
]
|
||||
},
|
||||
############## TODO: rename "include"
|
||||
"path":[
|
||||
"."
|
||||
],
|
||||
"compilation-version": {
|
||||
"compilation-version": { ## old ==> to remove
|
||||
"language": "c++",
|
||||
"version": 2017
|
||||
},
|
||||
"compilation-version": {
|
||||
"c++": 2017,
|
||||
"java": 16
|
||||
},
|
||||
"dependency": [
|
||||
"c",
|
||||
"m",
|
||||
@ -284,7 +292,14 @@ list_of_element_availlable=[
|
||||
"intricate": {
|
||||
|
||||
}
|
||||
},
|
||||
"instruction-set":{
|
||||
not present right now... :the instruction mode available...:
|
||||
}
|
||||
#### TODO: later
|
||||
"import": [
|
||||
"GDSFGH.json" ## import an other file to have generic definitions ...
|
||||
]
|
||||
}
|
||||
|
||||
get_compilator
|
||||
|
@ -30,7 +30,7 @@ class System(system.System):
|
||||
self.add_flag("c++", "-D__STDCPP_GNU__")
|
||||
if env.get_isolate_system() == False:
|
||||
self.add_flag("c++-remove", "-nostdlib")
|
||||
self.add_flag("need-libstdc++", True)
|
||||
self.add_flag("need-libstdc++", True) # regarder a quoi ca sert !!!!
|
||||
else:
|
||||
self.add_flag("link-lib", "stdc++")
|
||||
compilator_gcc = "g++"
|
||||
|
Loading…
x
Reference in New Issue
Block a user