Skip to content

Commit d499038

Browse files
authored
wip (#630)
* wip * u * u * u * u * u * u * u * u * u * u * u
1 parent 3a01821 commit d499038

File tree

6 files changed

+41
-21
lines changed

6 files changed

+41
-21
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
strategy:
124124
fail-fast: false
125125
matrix:
126-
os: [macos-15]
126+
os: [ macos-15 ]
127127
debug_or_release: [Release]
128128
shared_or_static: [shared, static]
129129
generator: ["Ninja"]
@@ -169,15 +169,15 @@ jobs:
169169
strategy:
170170
fail-fast: false
171171
matrix:
172-
os: [windows-latest, ubuntu-latest, macos-14]
172+
os: [windows-latest, ubuntu-latest, macos-15]
173173
debug_or_release: [Debug, Release]
174174
shared_or_static: [shared, static]
175175
arch: [x86_64]
176176
compiler: ["default", "clang"]
177177
exclude:
178178
- os: windows-latest
179179
compiler: "clang"
180-
- os: macos-latest
180+
- os: macos-15
181181
compiler: "clang" # default only
182182
include:
183183
- os: windows-latest
@@ -188,7 +188,7 @@ jobs:
188188
generator: "Ninja"
189189
additional_cmake_flags: ''
190190

191-
- os: macos-14
191+
- os: macos-15
192192
generator: "Ninja"
193193

194194
- os: ubuntu-latest
@@ -331,6 +331,10 @@ jobs:
331331
if: runner.os == 'macOS'
332332
run: brew install ninja
333333

334+
- name: Install Windows dependencies
335+
if: runner.os == 'Windows'
336+
run: choco install innosetup
337+
334338
- name: Download artifact
335339
uses: actions/download-artifact@v4
336340
with:
@@ -376,8 +380,16 @@ jobs:
376380
working-directory: ${{github.workspace}}/build
377381
run: |
378382
cmake . -DAUI_APP_PACKAGING=INNOSETUP
383+
cmake --build . --config ${{matrix.debug_or_release}}
379384
cpack -C ${{ matrix.debug_or_release }} . -B artifacts
380385
386+
- name: Print logs
387+
if: failure()
388+
shell: bash
389+
working-directory: ${{github.workspace}}/build
390+
run: |
391+
find . -name "*.log" -exec cat {} ";"
392+
381393
- name: Upload test app
382394
uses: actions/upload-artifact@v4
383395
with:

aui.boot.cmake

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ define_property(GLOBAL PROPERTY AUIB_FORWARDABLE_VARS
3636

3737
macro(auib_mark_var_forwardable VAR)
3838
set_property(GLOBAL APPEND PROPERTY AUIB_FORWARDABLE_VARS ${VAR})
39+
set(${VAR} "${${VAR}}" CACHE INTERNAL "auib_mark_var_forwardable propagated variable")
3940
endmacro()
4041

4142
option(AUIB_NO_PRECOMPILED "Forbid usage of precompiled packages")
@@ -373,7 +374,7 @@ function(_auib_precompiled_archive_name _output_var _project_name)
373374
set(${_output_var} ${_tmp} PARENT_SCOPE)
374375
endfunction()
375376

376-
macro(_auib_try_find)
377+
macro(_auib_try_find AUI_MODULE_NAME)
377378
set(_mode CONFIG)
378379
while(TRUE)
379380
if (AUIB_IMPORT_COMPONENTS)
@@ -440,7 +441,7 @@ function(_auib_try_download_precompiled_binary)
440441
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xzf ${CMAKE_CURRENT_BINARY_DIR}/binary.tar.gz
441442
WORKING_DIRECTORY ${DEP_INSTALL_PREFIX})
442443

443-
_auib_try_find()
444+
_auib_try_find(${AUI_MODULE_NAME})
444445

445446
file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/binary.tar.gz)
446447

@@ -519,7 +520,7 @@ function(_auib_postprocess)
519520
endfunction()
520521

521522
# TODO add a way to provide file access to the repository
522-
function(auib_import AUI_MODULE_NAME URL)
523+
macro(auib_import AUI_MODULE_NAME URL)
523524
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
524525
if (AUIB_DISABLE)
525526
if (AUIB_IMPORT_COMPONENTS)
@@ -710,7 +711,7 @@ function(auib_import AUI_MODULE_NAME URL)
710711
ROOT_DIR # OPENSSL_ROOT_DIR
711712
DIR)
712713
foreach(_v1 ${AUI_MODULE_NAME} ${AUI_MODULE_NAME_UPPER})
713-
unset(${_v1}_${_v2} PARENT_SCOPE)
714+
unset(${_v1}_${_v2})
714715
unset(${_v1}_${_v2} CACHE)
715716
endforeach()
716717
endforeach()
@@ -720,10 +721,10 @@ function(auib_import AUI_MODULE_NAME URL)
720721
set(${AUI_MODULE_NAME}_ROOT_DIR ${DEP_INSTALL_PREFIX} CACHE FILEPATH "Path to ${AUI_MODULE_NAME} provided by AUI.Boot.")
721722

722723
# creating uppercase variables in order to ease the case insensitive checks
723-
set(${AUI_MODULE_NAME}_DIR ${DEP_INSTALL_PREFIX} PARENT_SCOPE)
724-
set(${AUI_MODULE_NAME_UPPER}_DIR ${DEP_INSTALL_PREFIX} PARENT_SCOPE)
725-
set(${AUI_MODULE_NAME_UPPER}_ROOT ${DEP_INSTALL_PREFIX} PARENT_SCOPE)
726-
set(${AUI_MODULE_NAME_UPPER}_ROOT_DIR ${DEP_INSTALL_PREFIX} PARENT_SCOPE)
724+
set(${AUI_MODULE_NAME}_DIR ${DEP_INSTALL_PREFIX} )
725+
set(${AUI_MODULE_NAME_UPPER}_DIR ${DEP_INSTALL_PREFIX} )
726+
set(${AUI_MODULE_NAME_UPPER}_ROOT ${DEP_INSTALL_PREFIX} )
727+
set(${AUI_MODULE_NAME_UPPER}_ROOT_DIR ${DEP_INSTALL_PREFIX} )
727728
set(${AUI_MODULE_NAME_UPPER}_ROOT_DIR ${DEP_INSTALL_PREFIX} CACHE FILEPATH "Path to ${AUI_MODULE_NAME} provided by AUI.Boot.")
728729

729730
set(DEP_INSTALLED_FLAG ${DEP_INSTALL_PREFIX}/INSTALLED)
@@ -749,7 +750,7 @@ function(auib_import AUI_MODULE_NAME URL)
749750
if (NOT DEP_ADD_SUBDIRECTORY)
750751
# avoid compilation if we have existing installation
751752
if (EXISTS ${DEP_INSTALLED_FLAG})
752-
_auib_try_find()
753+
_auib_try_find(${AUI_MODULE_NAME})
753754
endif()
754755
endif()
755756

@@ -1058,7 +1059,7 @@ function(auib_import AUI_MODULE_NAME URL)
10581059
_auib_import_subdirectory(${DEP_SOURCE_DIR} ${AUI_MODULE_NAME})
10591060
message(STATUS "${AUI_MODULE_NAME} imported as a subdirectory: ${DEP_SOURCE_DIR}")
10601061
elseif(NOT ${AUI_MODULE_NAME}_FOUND)
1061-
_auib_try_find()
1062+
_auib_try_find(${AUI_MODULE_NAME})
10621063

10631064
if (NOT ${AUI_MODULE_NAME}_FOUND)
10641065
# print verbosely find procedure
@@ -1166,7 +1167,7 @@ function(auib_import AUI_MODULE_NAME URL)
11661167
message(WARNING "${AUIB_IMPORT_NAME} You are staying on a branch or did not specify the version control, please specify a tag or hash VERSION!\nSee https://aui-framework.github.io/develop/md_docs_2AUI_01Boot.html#version")
11671168
endif ()
11681169
endif ()
1169-
endfunction()
1170+
endmacro()
11701171

11711172

11721173
macro(auib_use_system_libs_begin)

aui.crypt/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ target_include_directories(aui.crypt PRIVATE ${OPENSSL_INCLUDE_DIR})
1616

1717
aui_link(aui.crypt PRIVATE OpenSSL::SSL OpenSSL::Crypto)
1818

19+
auib_mark_var_forwardable(OPENSSL_CRYPTO_LIBRARY)
20+
auib_mark_var_forwardable(OPENSSL_CRYPTO_LIBRARIES)
21+
auib_mark_var_forwardable(OPENSSL_SSL_LIBRARY)
22+
auib_mark_var_forwardable(OPENSSL_SSL_LIBRARIES)
23+
auib_mark_var_forwardable(OPENSSL_VERSION)
24+
auib_mark_var_forwardable(OPENSSL_LIBRARIES)
25+
auib_mark_var_forwardable(OPENSSL_FOUND)
26+
auib_mark_var_forwardable(OPENSSL_INCLUDE_DIR)
27+
auib_mark_var_forwardable(OPENSSL_ROOT_DIR)
28+
1929
if(WIN32 AND NOT BUILD_SHARED_LIBS)
2030
aui_link(OpenSSL::Crypto INTERFACE wsock32 ws2_32)
2131
endif()

cmake/aui.build.android.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ function(_aui_android_app)
7676
unset(ALL_CMAKE_ARGS)
7777
foreach(CACHE_VAR ${_forwardable_vars})
7878
get_property(_type CACHE ${CACHE_VAR} PROPERTY TYPE)
79-
if(_type STREQUAL INTERNAL)
80-
continue()
81-
endif()
8279
if(NOT _type)
8380
continue()
8481
endif()

cmake/aui.build.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,6 +1643,7 @@ macro(aui_app)
16431643
set(_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR})
16441644
set(CMAKE_SYSTEM_PROCESSOR ${_SYSTEM_PROCESSOR})
16451645
#include(BundleUtilities)
1646+
auib_use_system_libs_begin()
16461647
include(FindXCTest)
16471648
if (CMAKE_TOOLCHAIN_FILE)
16481649
get_filename_component(CMAKE_TOOLCHAIN_FILE ${CMAKE_TOOLCHAIN_FILE} ABSOLUTE)
@@ -1661,6 +1662,8 @@ macro(aui_app)
16611662
find_library(CFNETWORK CFNetwork REQUIRED)
16621663
find_library(SYSTEMCONFIGURATION SystemConfiguration REQUIRED)
16631664

1665+
auib_use_system_libs_end()
1666+
16641667
# link the frameworks located above
16651668
target_link_libraries(${APP_TARGET}
16661669
PRIVATE

cmake/aui.build.ios.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ function(_aui_ios_app)
3333
unset(ALL_CMAKE_ARGS)
3434
foreach(CACHE_VAR ${_forwardable_vars})
3535
get_property(_type CACHE ${CACHE_VAR} PROPERTY TYPE)
36-
if(_type STREQUAL INTERNAL)
37-
continue()
38-
endif()
3936
if(NOT _type)
4037
continue()
4138
endif()

0 commit comments

Comments
 (0)