Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,13 @@ jobs:
run: conan create gnustep-gui --profile:a=${{ github.workspace }}/profiles/windows-clang
- name: Install gnustep-headless
run: conan create gnustep-headless --profile:a=${{ github.workspace }}/profiles/windows-clang
- name: Install gnustep-cmake
run: conan create gnustep-cmake --profile:a=${{ github.workspace }}/profiles/windows-clang
- name: Build tutorial
run: |
conan install conanfile.txt --profile:a=../profiles/windows-clang --output-folder=build/ --conf="tools.env.virtualenv:powershell=pwsh.exe"
cd build/
cmake .. -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -GNinja
cmake --build .
./conanrun.ps1
./Tutorial.exe
cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -GNinja
cmake --build build
./build/conanrun.ps1
./build/Tutorial.exe
working-directory: tutorial/
- name: Upload Conan packages to Cloudsmith
run: |
Expand Down Expand Up @@ -180,16 +177,13 @@ jobs:
if: matrix.family == 'rhel'
- name: Install gnustep-headless
run: .python3/bin/conan create gnustep-headless --profile:a=profiles/linux-clang
- name: Install gnustep-cmake
run: .python3/bin/conan create gnustep-cmake --profile:a=profiles/linux-clang
- name: Build tutorial
run: |
../.python3/bin/conan install conanfile.txt --profile:a=../profiles/linux-clang --output-folder=build/
cd build/
CC=clang CXX=clang++ LDFLAGS="-fuse-ld=lld" cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
cmake --build .
. ./conanrun.sh
./Tutorial
CC=clang CXX=clang++ LDFLAGS="-fuse-ld=lld" cmake -S. -B build/ -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
cmake --build build
. build/conanrun.sh
./build/Tutorial
working-directory: tutorial/
- uses: actions/upload-artifact@v4
if: always()
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ conan create gnustep-make --profile:a=profiles/windows-clang
conan create gnustep-base --profile:a=profiles/windows-clang
conan create gnustep-gui --profile:a=profiles/windows-clang
conan create gnustep-headless --profile:a=profiles/windows-clang
conan create gnustep-cmake --profile:a=profiles/windows-clang
```

This will configure GNUstep Base and all of its dependencies.
Expand All @@ -64,7 +63,6 @@ conan create gnustep-make --profile:a=profiles/linux-clang
conan create gnustep-base --profile:a=profiles/linux-clang
conan create gnustep-gui --profile:a=profiles/linux-clang
conan create gnustep-headless --profile:a=profiles/linux-clang
conan create gnustep-cmake --profile:a=profiles/linux-clang
```

## Tips & Tricks
Expand Down
3 changes: 3 additions & 0 deletions gnustep-base/test_package/test_package.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ @implementation Test

int main(void)
{
// Basic tests of gnustep-base
NSLog(@"Hello, World!");

// This ensures we have a healty Objective C development environment once gnustep-make has been configured.
// In particular, we're testing the various Objective C compiler options (ABI, exception model,...) are configured
// correctly, by invoking an Objective C method which throws.
Expand Down
7 changes: 0 additions & 7 deletions gnustep-cmake/CMakeLists.txt

This file was deleted.

105 changes: 0 additions & 105 deletions gnustep-cmake/GNUstepConfig.cmake

This file was deleted.

46 changes: 0 additions & 46 deletions gnustep-cmake/conanfile.py

This file was deleted.

4 changes: 2 additions & 2 deletions tutorial/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.10)
project(Tutorial)

find_package(libobjc2)
find_package(GNUstep)
find_package(gnustep-base)

add_executable(Tutorial main.m)
target_link_libraries(Tutorial GNUstep::Base)
target_link_libraries(Tutorial gnustep-base::gnustep-base libobjc2::libobjc2)
5 changes: 1 addition & 4 deletions tutorial/conanfile.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[requires]
gnustep-base/[^1.31.1]
libobjc2/[^2.2.1]

[tool_requires]
gnustep-cmake/[^0.1.0]
gnustep-base/[^1.31.1]

[generators]
CMakeDeps
Expand Down