Browse Source

lpk: test compile to single js file

mattias 7 years ago
parent
commit
719f42195e

+ 1 - 1
packages/fcl-base/browserapp.pas

@@ -1,6 +1,6 @@
 unit browserapp;
 
-{$mode objfpc}{$H+}
+{$mode objfpc}
 
 interface
 

+ 1 - 1
packages/fcl-base/fcl_base_pas2js.lpk

@@ -12,7 +12,7 @@
       </SearchPaths>
       <Other>
         <ExecuteBefore>
-          <Command Value="$MakeExe(pas2js) -O- fcl_base_pas2js.pas"/>
+          <Command Value="$MakeExe(pas2js) -O- -Jc fcl_base_pas2js.pas"/>
           <ScanForFPCMsgs Value="True"/>
         </ExecuteBefore>
       </Other>

+ 1 - 1
packages/fcl-db/pas2js_fcldb.lpk

@@ -11,7 +11,7 @@
       </SearchPaths>
       <Other>
         <ExecuteBefore>
-          <Command Value="$MakeExe(pas2js) -O- pas2js_fcldb.pas"/>
+          <Command Value="$MakeExe(pas2js) -O- -Jc pas2js_fcldb.pas"/>
           <ScanForFPCMsgs Value="True"/>
         </ExecuteBefore>
       </Other>

+ 1 - 1
packages/fpcunit/fpcunit_pas2js.lpk

@@ -11,7 +11,7 @@
       </SearchPaths>
       <Other>
         <ExecuteBefore>
-          <Command Value="$MakeExe(pas2js) -O- fpcunit_pas2js.pas"/>
+          <Command Value="$MakeExe(pas2js) -O- -Jc fpcunit_pas2js.pas"/>
         </ExecuteBefore>
       </Other>
       <SkipCompiler Value="True"/>

+ 1 - 4
packages/rtl/pas2js_rtl.lpk

@@ -7,9 +7,6 @@
     <AutoUpdate Value="Manually"/>
     <CompilerOptions>
       <Version Value="11"/>
-      <SearchPaths>
-        <UnitOutputDirectory Value="lib"/>
-      </SearchPaths>
       <Parsing>
         <SyntaxOptions>
           <AllowLabel Value="False"/>
@@ -23,7 +20,7 @@
       <Other>
         <CustomOptions Value="-dPas2js"/>
         <ExecuteBefore>
-          <Command Value="$MakeExe(pas2js) -O- -Jc -FUlib pas2js_rtl.pas"/>
+          <Command Value="$MakeExe(pas2js) -O- -Jc pas2js_rtl.pas"/>
           <ScanForFPCMsgs Value="True"/>
         </ExecuteBefore>
       </Other>