This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_android.py
executable file
·146 lines (142 loc) · 7.67 KB
/
setup_android.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
from setuptools import setup
# Necessary to switch Panda to the OpenGL ES 1 or 2 renderer
# pandagles2 supports shaders, but no fixed-function pipeline
# pandagles supports fixed-function pipeline, but no shaders
PRC_DATA = '''
load-display pandagles2
aux-display pandagles
notify-level info
gl-debug true
'''
setup(
name="Korlan",
version='0.1.1',
include_package_data=True,
options={
'build_apps': {
'include_patterns': [
'Assets/**/*',
'Assets/**/tex/*',
'Configs/Language/*.json',
'Configs/Keyboard/*.json',
'Configs/Mice/*.json',
'Settings/UI/*.json',
'Settings/UI/ui_tex/**/*',
'Settings/UI/**/*.ttf',
'Settings/UI/**/*.txt',
'Settings/UI/**/*.egg*',
'Settings/Sound/*.ogg',
'Engine/Renderer/**/*.png',
'Engine/Renderer/**/*.jpg',
'Engine/Renderer/data/**/**/**/*',
'Engine/Renderer/**/*.yaml',
'Engine/Renderer/**/*.flag',
'Engine/Renderer/**/*.prc',
'Engine/Renderer/**/*.txt',
'Engine/Renderer/**/*.yaml',
'Engine/Renderer/**/*.bam',
'Engine/Renderer/**/*.ttf',
'Engine/Renderer/**/*.ies',
'Engine/Renderer/**/*.txo',
'Engine/Renderer/**/*.txo.*',
'Engine/Renderer/**/*.glsl',
'Engine/Renderer/**/*.compute',
'Engine/Shaders/**/*.*',
'tex/*.*',
],
# Workaround for
# AssertionError: macos_main_app must be defined if more than one gui_app is defined
# since we don't have support for macos
'macos_main_app': 'Korlan',
'gui_apps': {
'Korlan': 'main.py',
},
"icons": {
"Korlan": ["icon-256.png", "icon-128.png", "icon-48.png", "icon-32.png", "icon-16.png"],
},
'platforms': [
'manylinux1_x86_64',
],
'include_modules': {'*': ['Engine.Renderer.rpcore.native.GPUCommand',
'Engine.Renderer.rpcore.native.GPUCommandList',
'Engine.Renderer.rpcore.native.IESDataset',
'Engine.Renderer.rpcore.native.InternalLightManager',
'Engine.Renderer.rpcore.native.PointLight',
'Engine.Renderer.rpcore.native.ShadowManager',
'Engine.Renderer.rpcore.native.SpotLight',
'Engine.Renderer.rpcore.native.TagStateManager',
'Engine.Renderer.rpcore.native.native_',
'Engine.Renderer.rpcore.native.PSSMCameraRig',
'Engine.Renderer.rplibs.yaml_py2.SafeLoader',
'Engine.Renderer.rplibs.yaml_py2.YAMLError',
'Engine.Renderer.rplibs.yaml_py2.load',
'Engine.Renderer.rplibs.yaml_py3.SafeLoader',
'Engine.Renderer.rplibs.yaml_py3.YAMLError',
'Engine.Renderer.rplibs.yaml_py3.load',
'cyaml',
'Engine.Renderer.rplibs.yaml.yaml_py3.error',
'Engine.Renderer.rplibs.yaml.yaml_py3.dumper',
'Engine.Renderer.rplibs.yaml.error',
'Engine.Renderer.rplibs.yaml.yaml_py3.events',
'Engine.Renderer.rplibs.yaml.yaml_py3.loader',
'Engine.Renderer.rplibs.yaml.yaml_py3.nodes',
'ordereddict',
'Engine.Renderer.rpplugins.ao',
'Engine.Renderer.rpplugins.ao.plugin',
'Engine.Renderer.rpplugins.bloom',
'Engine.Renderer.rpplugins.bloom.plugin',
'Engine.Renderer.rpplugins.clouds',
'Engine.Renderer.rpplugins.clouds.plugin',
'Engine.Renderer.rpplugins.color_correction',
'Engine.Renderer.rpplugins.color_correction.plugin',
'Engine.Renderer.rpplugins.dof',
'Engine.Renderer.rpplugins.dof.plugin',
'Engine.Renderer.rpplugins.env_probes',
'Engine.Renderer.rpplugins.env_probes.environment_probe',
'Engine.Renderer.rpplugins.env_probes.plugin',
'Engine.Renderer.rpplugins.forward_shading',
'Engine.Renderer.rpplugins.forward_shading.plugin',
'Engine.Renderer.rpplugins.fxaa',
'Engine.Renderer.rpplugins.fxaa.plugin',
'Engine.Renderer.rpplugins.motion_blur',
'Engine.Renderer.rpplugins.motion_blur.plugin',
'Engine.Renderer.rpplugins.pssm',
'Engine.Renderer.rpplugins.pssm.plugin',
'Engine.Renderer.rpplugins.scattering',
'Engine.Renderer.rpplugins.scattering.plugin',
'Engine.Renderer.rpplugins.skin_shading',
'Engine.Renderer.rpplugins.skin_shading.plugin',
'Engine.Renderer.rpplugins.sky_ao',
'Engine.Renderer.rpplugins.sky_ao.plugin',
'Engine.Renderer.rpplugins.smaa',
'Engine.Renderer.rpplugins.smaa.plugin',
'Engine.Renderer.rpplugins.ssr',
'Engine.Renderer.rpplugins.ssr.plugin',
'Engine.Renderer.rpplugins.volumetrics',
'Engine.Renderer.rpplugins.volumetrics.plugin',
'Engine.Renderer.rpplugins.vxgi',
'Engine.Renderer.rpplugins.vxgi.plugin',
'thread',
'Engine.Renderer.rplibs.yaml.yaml_py3.tokens',
'Engine.Renderer.rplibs.yaml.yaml_py3.load'
]},
'extra_prc_data': PRC_DATA,
'plugins': [
# Note use of pandagles2/pandagles instead of pandagl
'pandagles2',
'pandagles',
'p3openal_audio',
'p3ffmpeg',
'p3ptloader',
],
},
'bdist_apps': {
'signing_certificate': 'cert.pem',
'signing_private_key': 'private.pem',
# optional: Panda will otherwise ask passphrase on command-line
# 'signing_passphrase': 'panda3d_is_cool',
},
},
# Choosing a classifier in the Games category makes it marked a "Game"
classifiers=['Topic :: Games/Entertainment'],
)