Skip to content

Commit

Permalink
Some cleanup - moved glue generation scripts to 'scripts', leaving ge…
Browse files Browse the repository at this point in the history
…nerated foreign interfaces in 'glue'
  • Loading branch information
jarikomppa committed Apr 19, 2015
1 parent 8254a32 commit c36af7c
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 10 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion glue/gen_blitzmax.py → scripts/gen_blitzmax.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import soloud_codegen

fo = open("soloud.bmx", "w")
fo = open("../glue/soloud.bmx", "w")

"""
Global SoloudLib:Int = LoadLibraryA ("soloud_x86.dll")
Expand Down
2 changes: 1 addition & 1 deletion glue/gen_cs.py → scripts/gen_cs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import soloud_codegen

fo = open("soloud.cs", "w")
fo = open("../glue/soloud.cs", "w")


C_TO_CS_TYPES = {
Expand Down
2 changes: 1 addition & 1 deletion glue/gen_d.py → scripts/gen_d.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import soloud_codegen

fo = open("soloud.d", "w")
fo = open("../glue/soloud.d", "w")


C_TO_D_TYPES = {
Expand Down
2 changes: 0 additions & 2 deletions glue/gen_gamemaker.py → scripts/gen_gamemaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,5 +368,3 @@

callp = ["make_gmez.bat"]
subprocess.call(callp)

print "Unless something went wrong, soloud.gmez should now be here."
2 changes: 1 addition & 1 deletion glue/gen_python.py → scripts/gen_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import soloud_codegen

fo = open("soloud.py", "w")
fo = open("../glue/soloud.py", "w")

#
# from ctypes import *
Expand Down
2 changes: 1 addition & 1 deletion glue/gen_rpgmaker.py → scripts/gen_rpgmaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import soloud_codegen

fo = open("rpgmaker_soloud.rb", "w")
fo = open("../glue/rpgmaker_soloud.rb", "w")

# module SoLoudImporter
# extend DL::Importer
Expand Down
2 changes: 1 addition & 1 deletion glue/gen_ruby.py → scripts/gen_ruby.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import soloud_codegen

fo = open("soloud.rb", "w")
fo = open("../glue/soloud.rb", "w")

# module SoLoudImporter
# extend DL::Importer
Expand Down
2 changes: 1 addition & 1 deletion glue/make_gmez.bat → scripts/make_gmez.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@echo off
del soloud.gmez
cd gm_temp
7z a -r -y ../soloud.gmez *
7z a -r -y ../../glue/soloud.gmez *
cd ..
rd /s /q gm_temp
del soloud_gamemaker_dll.*
Expand Down
6 changes: 6 additions & 0 deletions scripts/makeglue.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import glob
import subprocess

for file in glob.glob("gen_*.py"):
subprocess.call(["python",file])

File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/tools/codegen/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ freely, subject to the following restrictions:
#define VERSION "SoLoud C-Api Code Generator (c)2013-2015 Jari Komppa http://iki.fi/sol/"

#define OUTDIR "../src/c_api/"
#define PYOUTDIR "../glue/"
#define PYOUTDIR "../scripts/"

using namespace std;

Expand Down

0 comments on commit c36af7c

Please sign in to comment.