Created
June 28, 2023 12:18
-
-
Save benkant/89490f16d6e4b9810817cb7957bfb464 to your computer and use it in GitHub Desktop.
Example conanfile.py with CMake, Google Sandbox API, Luau, raylib.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from conans import ConanFile, CMake | |
class MyProject(ConanFile): | |
name = "my_project" | |
version = "0.1" | |
settings = "os", "compiler", "build_type", "arch" | |
generators = "cmake" | |
requires = [ | |
"sandboxed-api/1.0.0", | |
"luau/<fork_version>@<fork_user>/<channel>", | |
"raylib/<fork_version>@<fork_user>/<channel>" | |
] | |
default_options = { | |
"sandboxed-api:shared": True, | |
"luau:shared": True, | |
"raylib:shared": True | |
} | |
def build(self): | |
cmake = CMake(self) | |
cmake.configure() | |
cmake.build() | |
def test(self): | |
self.run(".\\bin\\test_package") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment