Skip to content

Commit 7b49e2b

Browse files
WIP
1 parent c1e8d11 commit 7b49e2b

7 files changed

Lines changed: 17 additions & 1168 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
.vs/
44
.idea/
55
out/
6+
shader-temp/
7+
cache/
68

79
# python
810
scripts/__pycache__/
@@ -14,6 +16,7 @@ pilotlight/*.pdb
1416
pilotlight/*.dll
1517
pilotlight/*.so
1618
pilotlight/*.dSYM
19+
pilotlight/shaders/
1720

1821
# debug files
1922
src/*.pdb

sandbox/app.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from pilotlight.pl_vfs_ext import *
1313
from pilotlight.pl_shader_ext import *
1414
from pilotlight.pl_pak_ext import *
15+
import os
1516

1617
class App:
1718

@@ -20,13 +21,9 @@ def __init__(self):
2021

2122
def pl_app_load(self):
2223

23-
plVfsI.mount_directory("/cache", "../../pilotlight/cache")
24-
plVfsI.mount_directory("/shaders", "../../pilotlight/shaders")
25-
plVfsI.mount_directory("/shader-temp", "../../pilotlight/shader-temp")
26-
27-
# plVfsI.mount_directory("/cache", "C:/dev/pilotlight/cache")
28-
# plVfsI.mount_directory("/shaders", "C:/dev/pilotlight/shaders")
29-
# plVfsI.mount_directory("/shader-temp", "C:/dev/pilotlight/shader-temp")
24+
plVfsI.mount_directory("/cache", "cache")
25+
plVfsI.mount_directory("/shaders", os.path.dirname(os.path.abspath(pl.__file__)) + "/shaders")
26+
plVfsI.mount_directory("/shader-temp", "shader-temp")
3027

3128
self.ptWindow = plWindowI.create("Python Example", 200, 200, 500, 500, 0)
3229
plWindowI.show(self.ptWindow)

scripts/gen_build.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import os
1414
import sys
1515
import platform as plat
16+
import glob
17+
import shutil
1618

1719
import pl_build.core as pl
1820
import pl_build.backend_win32 as win32
@@ -262,6 +264,7 @@
262264
with pl.configuration("debug"):
263265

264266
pl.set_output_directory("../pilotlight")
267+
pl.add_definitions("PL_CONFIG_DEBUG")
265268

266269

267270
# win32
@@ -393,7 +396,9 @@
393396
elif plat.system() == "Linux":
394397
linux.generate_build(working_directory + '/' + "build.sh")
395398

396-
if len(sys.argv) == 1:
397-
win32.generate_build(working_directory + '/' + "build_win32.bat")
398-
apple.generate_build(working_directory + '/' + "build_macos.sh")
399-
linux.generate_build(working_directory + '/' + "build_linux.sh")
399+
# copy shaders
400+
if os.path.isdir(working_directory + "/../pilotlight/shaders"):
401+
os.removedirs(working_directory + "/../pilotlight/shaders")
402+
403+
404+
shutil.copytree(working_directory + "/../../pilotlight/shaders", working_directory + "/../pilotlight/shaders")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def setup_package():
3939

4040
metadata = dict(
4141
name='pilotlight', # Required
42-
version="0.1.4", # Required
42+
version="0.1.5", # Required
4343
author="Jonathan Hoffstadt", # Optional
4444
author_email="jonathanhoffstadt@yahoo.com", # Optional
4545
description='Pilot Light', # Required

0 commit comments

Comments
 (0)