23 lines
840 B
Python
23 lines
840 B
Python
## Assembly - CSharp
|
|
|
|
import os
|
|
import shutil
|
|
|
|
def post(bld):
|
|
distdir = os.path.join(bld.top_dir, 'marsxplr_build', 'Mars Explorer_Data')
|
|
os.makedirs(distdir, exist_ok=True)
|
|
shutil.copy(
|
|
os.path.join(bld.out_dir, 'Assembly_-_CSharp', 'e36192721fc364533a8edf2aefd3b72c.dll'),
|
|
os.path.join(distdir, 'Assembly - CSharp.dll'))
|
|
|
|
def build(bld):
|
|
bld.add_post_fun(post)
|
|
|
|
bld(
|
|
source=bld.path.ant_glob(os.path.join('src', '*.cs')),
|
|
target='e36192721fc364533a8edf2aefd3b72c.dll',
|
|
rule='"${MCS}" -recurse:\"' +
|
|
os.path.join(bld.path.abspath(), 'src', '*.cs') +
|
|
'\" -reference:\"' + str(os.path.join(bld.out_dir, 'UnityEngine', 'UnityEngine.dll')) +
|
|
'\" -reference:\"' + str(os.path.join(bld.out_dir, 'Assembly_-_CSharp_-_first_pass', '26998b3a9cbf54825a27e5f2d3cc4df1.dll')) +
|
|
'\" -out:${TGT} -target:library ${MONOOPTS}') |