Skip to content

Commit

Permalink
pixi: add simage (#126)
Browse files Browse the repository at this point in the history
* pixi: add simage

* set /bigobj property only for msvc

* use clang for all platforms

* pixi: update lock file

* pixi: revert linux to gxx
  • Loading branch information
looooo authored Sep 24, 2024
1 parent 0e02e3e commit 0890559
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 4 deletions.
6 changes: 4 additions & 2 deletions interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ swig_add_library(coin

if (APPLE)
set_target_properties(coin PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
elseif (WIN32)
elseif (MSVC)
set_target_properties(coin PROPERTIES COMPILE_FLAGS "/bigobj")
elseif(WIN32)
target_link_libraries(coin PUBLIC ${Python_LIBRARIES})
endif ()

Expand Down Expand Up @@ -61,8 +62,9 @@ if (SoQt_FOUND)

if (APPLE)
set_target_properties(soqt PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
elseif (WIN32)
elseif (MSVC)
set_target_properties(coin PROPERTIES COMPILE_FLAGS "/bigobj")
elseif (WIN32)
target_link_libraries(soqt PUBLIC ${Python_LIBRARIES})
endif ()

Expand Down
97 changes: 97 additions & 0 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pixi.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
authors = ["Lorenz Lechner <[email protected]>"]
channels = ["conda-forge"]
description = "Add a short description here"
description = "combining building and dependency management with pixi"
name = "pivy"
platforms = ["osx-arm64", "linux-64", "linux-aarch64", "win-64", "osx-64"]
version = "0.1.0"
Expand All @@ -21,6 +21,7 @@ ninja = "*"
soqt6 = "*"
qt6-main = "*"
pyside6 = "*"
simage = "*"


[feature.build.target.linux-64.dependencies]
Expand Down Expand Up @@ -48,7 +49,7 @@ configure = { cmd = ["cmake", "-G", "Ninja", "-B", "build", "-S", ".",
"-D", "QT_HOST_PATH=$CONDA_PREFIX"
], depends-on = []}

build = { cmd = ["ninja", "-C", "build", "-j", "3", "install"], depends-on = ["configure"]}
build = { cmd = ["ninja", "-C", "build", "-j", "1", "install"], depends-on = ["configure"]}
test = { cmd = ["python", "tests/coin_tests.py"], depends-on = ["build"]}

[feature.lint.dependencies]
Expand Down

0 comments on commit 0890559

Please sign in to comment.