Browse Source

separated haxelib client from site

Simon Krajewski 12 years ago
parent
commit
8c2a21e5d5

+ 2 - 0
std/tools/haxelib/Site.hx

@@ -20,7 +20,9 @@
  * DEALINGS IN THE SOFTWARE.
  */
 package tools.haxelib;
+#if haxelib_site
 import tools.haxelib.SiteDb;
+#end
 import haxe.rtti.CType;
 
 class Site {

+ 2 - 0
std/tools/haxelib/SiteApi.hx

@@ -21,7 +21,9 @@
  */
 package tools.haxelib;
 import tools.haxelib.Data;
+#if haxelib_site
 import tools.haxelib.SiteDb;
+#end
 
 class SiteApi {
 

+ 0 - 4
std/tools/haxelib/haxelib.hxml

@@ -1,7 +1,3 @@
--neko index.n
--main tools.haxelib.Site
--dce no
---next
 -neko haxelib.n
 -main tools.haxelib.Main
 -cmd "nekotools boot haxelib.n"

+ 5 - 4
std/tools/haxelib/haxelib.hxproj

@@ -2,7 +2,7 @@
 <project version="2">
   <!-- Output SWF options -->
   <output>
-    <movie outputType="Application" />
+    <movie outputType="CustomBuild" />
     <movie input="" />
     <movie path="index.n" />
     <movie fps="30" />
@@ -23,7 +23,7 @@
     <option flashStrict="False" />
     <option mainClass="tools.haxelib.Site" />
     <option enabledebug="False" />
-    <option additional="-D haxe3&#xA;-dce no&#xA;--next&#xA;-neko haxelib.n&#xA;-main tools.haxelib.Main&#xA;-cmd nekotools boot haxelib.n&#xA;-D haxe3" />
+    <option additional="" />
   </build>
   <!-- haxelib libraries -->
   <haxelib>
@@ -38,13 +38,14 @@
     <!-- example: <hidden path="..." /> -->
   </hiddenPaths>
   <!-- Executed before build -->
-  <preBuildCommand />
+  <preBuildCommand>haxe haxelib.hxml</preBuildCommand>
   <!-- Executed after build -->
   <postBuildCommand alwaysRun="False" />
   <!-- Other project options -->
   <options>
     <option showHiddenPaths="False" />
-    <option testMovie="Unknown" />
+    <option testMovie="Custom" />
+    <option testMovieCommand="" />
   </options>
   <!-- Plugin storage -->
   <storage />

+ 4 - 0
std/tools/haxelib/site.hxml

@@ -0,0 +1,4 @@
+-neko index.n
+-main tools.haxelib.Site
+-dce no
+-D haxelib-site