mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 23:59:18 +08:00
enabling msbuild in ci now that we can fetch needed meta build bits from efrocache
This commit is contained in:
parent
fa7ade1e99
commit
7f5fec0e3e
@ -847,29 +847,49 @@ def gen_flat_data_code() -> None:
|
|||||||
|
|
||||||
def win_ci_binary_build() -> None:
|
def win_ci_binary_build() -> None:
|
||||||
"""Simple windows binary build for ci."""
|
"""Simple windows binary build for ci."""
|
||||||
from efrotools.efrocache import get_target
|
import json
|
||||||
import subprocess
|
import subprocess
|
||||||
get_target('build/prefab/lib/windows/Debug_Win32/'
|
from efrotools.efrocache import get_target
|
||||||
'BallisticaCoreGenericInternal.lib')
|
|
||||||
get_target('build/prefab/lib/windows/Debug_Win32/'
|
|
||||||
'BallisticaCoreGenericInternal.pdb')
|
|
||||||
get_target('ballisticacore-windows/Generic/BallisticaCore.ico')
|
|
||||||
|
|
||||||
if bool(False):
|
# We'll need to pull a handfull of things out of efrocache for the
|
||||||
subprocess.run(
|
# build to succeed. Normally this would happen through our Makefile
|
||||||
[
|
# targets but we can't use them under raw window so we need to just
|
||||||
'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\'
|
# hard-code whatever we need here.
|
||||||
'Enterprise\\MSBuild\\Current\\Bin\\MSBuild.exe',
|
needed_targets: Set[str] = {
|
||||||
'ballisticacore-windows\\Generic'
|
'build/prefab/lib/windows/Debug_Win32/'
|
||||||
'\\BallisticaCoreGeneric.vcxproj',
|
'BallisticaCoreGenericInternal.lib',
|
||||||
'-target:Build',
|
'build/prefab/lib/windows/Debug_Win32/'
|
||||||
'-property:Configuration=Debug',
|
'BallisticaCoreGenericInternal.pdb',
|
||||||
'-property:Platform=Win32',
|
'ballisticacore-windows/Generic/BallisticaCore.ico'
|
||||||
'-property:VisualStudioVersion=16',
|
}
|
||||||
],
|
|
||||||
check=True,
|
# Look through everything that gets generated by our meta builds
|
||||||
)
|
# and pick out anything the compile requires.
|
||||||
print('so far so good 4', flush=True)
|
with open('src/meta/.meta_manifest_public.json') as infile:
|
||||||
|
meta_public: List[str] = json.loads(infile.read())
|
||||||
|
with open('src/meta/.meta_manifest_private.json') as infile:
|
||||||
|
meta_private: List[str] = json.loads(infile.read())
|
||||||
|
for target in meta_public + meta_private:
|
||||||
|
if target.startswith('src/ballistica/generated/'):
|
||||||
|
needed_targets.add(target)
|
||||||
|
|
||||||
|
for target in needed_targets:
|
||||||
|
get_target(target)
|
||||||
|
|
||||||
|
# Do the thing.
|
||||||
|
subprocess.run(
|
||||||
|
[
|
||||||
|
'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\'
|
||||||
|
'Enterprise\\MSBuild\\Current\\Bin\\MSBuild.exe',
|
||||||
|
'ballisticacore-windows\\Generic'
|
||||||
|
'\\BallisticaCoreGeneric.vcxproj',
|
||||||
|
'-target:Build',
|
||||||
|
'-property:Configuration=Debug',
|
||||||
|
'-property:Platform=Win32',
|
||||||
|
'-property:VisualStudioVersion=16',
|
||||||
|
],
|
||||||
|
check=True,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def genchangelog() -> None:
|
def genchangelog() -> None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user