Skip to content

Instantly share code, notes, and snippets.

@benkant
Created June 28, 2023 12:18
Show Gist options
  • Save benkant/89490f16d6e4b9810817cb7957bfb464 to your computer and use it in GitHub Desktop.
Save benkant/89490f16d6e4b9810817cb7957bfb464 to your computer and use it in GitHub Desktop.
Example conanfile.py with CMake, Google Sandbox API, Luau, raylib.
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