Skip to content

Commit

Permalink
Moved tuli from macro package to sys package.
Browse files Browse the repository at this point in the history
LibRunner.hx builds a haxelib run.n file.
all.hxml builds all the plugins which are packaged into tuli.
  • Loading branch information
skial committed May 6, 2014
1 parent 409bce8 commit cd40cca
Show file tree
Hide file tree
Showing 15 changed files with 1,677 additions and 467 deletions.
15 changes: 15 additions & 0 deletions LibRunner.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-lib tjson
-lib mo
-lib detox
-lib klas
-lib tink_core
-lib tink_macro
-lib hxparse
-lib selecthxml
-lib tappi
-lib imagemagick
-cp src
-neko run.n
-D openfl
-main LibRunner
--remap flash:flash
60 changes: 60 additions & 0 deletions LibRunner.hxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<project version="2">
<!-- Output SWF options -->
<output>
<movie outputType="Application" />
<movie input="" />
<movie path="run.n" />
<movie fps="0" />
<movie width="0" />
<movie height="0" />
<movie version="1" />
<movie minorVersion="0" />
<movie platform="Neko" />
<movie background="#FFFFFF" />
</output>
<!-- Other classes to be compiled into your SWF -->
<classpaths>
<class path="src" />
</classpaths>
<!-- Build options -->
<build>
<option directives="openfl" />
<option flashStrict="False" />
<option noInlineOnDebug="False" />
<option mainClass="LibRunner" />
<option enabledebug="False" />
<option additional="--remap flash:flash" />
</build>
<!-- haxelib libraries -->
<haxelib>
<library name="tjson" />
<library name="mo" />
<library name="detox" />
<library name="klas" />
<library name="tink_core" />
<library name="tink_macro" />
<library name="hxparse" />
<library name="selecthxml" />
</haxelib>
<!-- Class files to compile (other referenced classes will automatically be included) -->
<compileTargets>
<compile path="src\Main.hx" />
</compileTargets>
<!-- Paths to exclude from the Project Explorer tree -->
<hiddenPaths>
<hidden path="obj" />
</hiddenPaths>
<!-- Executed before build -->
<preBuildCommand />
<!-- Executed after build -->
<postBuildCommand alwaysRun="False" />
<!-- Other project options -->
<options>
<option showHiddenPaths="False" />
<option testMovie="Custom" />
<option testMovieCommand="run.bat" />
</options>
<!-- Plugin storage -->
<storage />
</project>
49 changes: 49 additions & 0 deletions all.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
-lib tuli
-lib mo
-lib detox
-lib beanhx
-lib tjson
-lib selecthxml
-debug
#-dce no
-cp src

--each

-neko atom.n
-main uhx.tuli.plugins.Atom

--next

-neko boxedimages.n
-main uhx.tuli.plugins.ImageLetterbox

--next

-neko importhtml.n
-main uhx.tuli.plugins.ImportHTML

--next

-neko markdown.n
-main uhx.tuli.plugins.Markdown

--next

-neko nofollow.n
-main uhx.tuli.plugins.NoFollow

--next

-neko rss.n
-main uhx.tuli.plugins.RSS

--next

-neko socialmetadata.n
-main uhx.tuli.plugins.SocialMetadata

--next

-neko titlelinks.n
-main uhx.tuli.plugins.TitleLinks
2 changes: 1 addition & 1 deletion extraParams.hxml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--macro uhx.macro.Tuli.initialize()
#--macro uhx.macro.Tuli.initialize()
38 changes: 38 additions & 0 deletions src/LibRunner.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package ;

import sys.io.File;
import haxe.io.Path;
import sys.FileSystem;
import haxe.Unserializer;
import uhx.sys.Tuli;

using haxe.io.Path;
using sys.FileSystem;

/**
* ...
* @author Skial Bainn
*/

class LibRunner {

static function main() {
trace('main');
var args = Sys.args();
var len = args.length;

var cwd = args.pop().normalize();
var path = if (len == 3) args.pop() else '';
var cmd = args.pop();

switch (cmd) {
case 'build':
Sys.setCwd( cwd );
Tuli.initialize();

case _:

}
}

}
Loading

0 comments on commit cd40cca

Please sign in to comment.