21 lines
573 B
Python
21 lines
573 B
Python
## UnityEngine
|
|
|
|
import os
|
|
import shutil
|
|
|
|
def post(bld):
|
|
distdir = os.path.join(bld.top_dir, 'marsxplr_build', 'Mars Explorer_Data', 'lib')
|
|
os.makedirs(distdir, exist_ok=True)
|
|
shutil.copy(
|
|
os.path.join(bld.out_dir, 'UnityEngine', 'UnityEngine.dll'),
|
|
os.path.join(distdir, 'UnityEngine.dll'))
|
|
|
|
def build(bld):
|
|
bld.add_post_fun(post)
|
|
|
|
bld(
|
|
source=bld.path.ant_glob(os.path.join('src', '*.cs')),
|
|
target='UnityEngine.dll',
|
|
rule='"${MCS}" -recurse:\"' +
|
|
os.path.join(bld.path.abspath(), 'src', '*.cs') +
|
|
'\" -out:${TGT} -target:library ${MONOOPTS} -unsafe') |