From 8688be9116afcc81d5ac1a3f546ec2c56aae6e7f Mon Sep 17 00:00:00 2001 From: Kaido Kert Date: Sun, 30 Jun 2024 12:29:24 -0700 Subject: [PATCH 1/2] Add stub Waf script to let CodeQL autobuild run (#676) --- wscript | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 wscript diff --git a/wscript b/wscript new file mode 100644 index 0000000000000..e1e1ada702d33 --- /dev/null +++ b/wscript @@ -0,0 +1,9 @@ +# pylint: disable=missing-module-docstring,invalid-name + + +def configure(_ctx): + pass + + +def build(ctx): + ctx.exec_command('echo Hello, Waf for CODEQL !') From 0500f21d8edd975665d0ac950e28ed542b70f1a9 Mon Sep 17 00:00:00 2001 From: Kaido Kert Date: Sun, 30 Jun 2024 13:45:34 -0700 Subject: [PATCH 2/2] Codeql test (#677) * Add stub Waf script to let CodeQL autobuild run * Add setup.py and Sconstruct for CodeQL --- SConstruct | 1 + setup.py | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 SConstruct create mode 100644 setup.py diff --git a/SConstruct b/SConstruct new file mode 100644 index 0000000000000..01015552eba7b --- /dev/null +++ b/SConstruct @@ -0,0 +1 @@ +Program('hello.cpp') diff --git a/setup.py b/setup.py new file mode 100644 index 0000000000000..56a2f18ae86da --- /dev/null +++ b/setup.py @@ -0,0 +1,18 @@ +# pylint: disable=missing-module-docstring +from setuptools import setup +from setuptools.command.build_py import build_py + + +class CustomBuild(build_py): + + def run(self): + # Place your custom build logic here + print('Running custom build steps') + super().run() + + +setup( + name='Cobalt', + version='25.0', + packages=['cobalt-runtime'], + cmdclass={'build_py': CustomBuild})