Browse Source

* Moved makefile options to jconfig.inc

michael 21 years ago
parent
commit
59a791ced2

+ 0 - 1
packages/base/pasjpeg/Makefile

@@ -208,7 +208,6 @@ override PACKAGE_VERSION=1.9.2
 override TARGET_UNITS+=jmorecfg jpeglib jdeferr jerror jcomapi jinclude rdcolmap cdjpeg jdapimin jmemmgr jutils jmemnobs jdmarker jdinput jdapistd jdmaster jdcolor jdsample jdpostct jddctmgr jdct jidctfst jidctint jidctflt jidctred jdphuff jdhuff jdcoefct jdmainct jquant2 jquant1 jdmerge jdatasrc wrbmp wrppm wrtarga
 override TARGET_UNITS+=jmorecfg jpeglib jdeferr jerror jcomapi jinclude rdcolmap cdjpeg jdapimin jmemmgr jutils jmemnobs jdmarker jdinput jdapistd jdmaster jdcolor jdsample jdpostct jddctmgr jdct jidctfst jidctint jidctflt jidctred jdphuff jdhuff jdcoefct jdmainct jquant2 jquant1 jdmerge jdatasrc wrbmp wrppm wrtarga
 override TARGET_EXAMPLES+=cjpeg demo djpeg jpegtran rdjpgcom
 override TARGET_EXAMPLES+=cjpeg demo djpeg jpegtran rdjpgcom
 override INSTALL_FPCPACKAGE=y
 override INSTALL_FPCPACKAGE=y
-override COMPILER_OPTIONS+=-Sdg
 ifdef REQUIRE_UNITSDIR
 ifdef REQUIRE_UNITSDIR
 override UNITSDIR+=$(REQUIRE_UNITSDIR)
 override UNITSDIR+=$(REQUIRE_UNITSDIR)
 endif
 endif

+ 0 - 3
packages/base/pasjpeg/Makefile.fpc

@@ -6,9 +6,6 @@
 name=pasjpeg
 name=pasjpeg
 version=1.9.2
 version=1.9.2
 
 
-[compiler]
-options=-Sdg
-
 [target]
 [target]
 units=jmorecfg jpeglib jdeferr jerror jcomapi jinclude rdcolmap cdjpeg \
 units=jmorecfg jpeglib jdeferr jerror jcomapi jinclude rdcolmap cdjpeg \
       jdapimin jmemmgr jutils jmemnobs jdmarker jdinput jdapistd jdmaster \
       jdapimin jmemmgr jutils jmemnobs jdmarker jdinput jdapistd jdmaster \

+ 2 - 1
packages/base/pasjpeg/jccoefct.pas

@@ -8,6 +8,8 @@ Unit JcCoefCt;
 
 
 interface
 interface
 
 
+{$I jconfig.inc}
+
 uses
 uses
   jmorecfg,
   jmorecfg,
   jinclude,
   jinclude,
@@ -16,7 +18,6 @@ uses
   jutils,
   jutils,
   jpeglib;
   jpeglib;
 
 
-{$I jconfig.inc}
 
 
 { We use a full-image coefficient buffer when doing Huffman optimization,
 { We use a full-image coefficient buffer when doing Huffman optimization,
   and also for writing multiple-scan JPEG files.  In all cases, the DCT
   and also for writing multiple-scan JPEG files.  In all cases, the DCT

+ 2 - 1
packages/base/pasjpeg/jcmaster.pas

@@ -9,6 +9,8 @@ Unit JcMaster;
 
 
 interface
 interface
 
 
+{$I jconfig.inc}
+
 uses
 uses
   jmorecfg,
   jmorecfg,
   jinclude,
   jinclude,
@@ -17,7 +19,6 @@ uses
   jutils,
   jutils,
   jpeglib;
   jpeglib;
 
 
-{$I jconfig.inc}
 
 
 { Initialize master compression control. }
 { Initialize master compression control. }
 
 

+ 5 - 0
packages/base/pasjpeg/jconfig.inc

@@ -108,3 +108,8 @@
     {$undef RGB_RED_IS_0}          { BGR byte order in JQUANT2 }
     {$undef RGB_RED_IS_0}          { BGR byte order in JQUANT2 }
   {$endif}
   {$endif}
 {$endif}
 {$endif}
+
+{$IFDEF FPC}
+{$MODE DELPHI}
+{$GOTO ON}
+{$ENDIF}

+ 1 - 1
packages/base/pasjpeg/jcphuff.pas

@@ -10,6 +10,7 @@ Unit JcpHuff;
 
 
 interface
 interface
 
 
+{$I jconfig.inc}
 uses
 uses
   jmorecfg,
   jmorecfg,
   jinclude,
   jinclude,
@@ -20,7 +21,6 @@ uses
   jcomapi,
   jcomapi,
   jchuff;       	{ Declarations shared with jchuff.c }
   jchuff;       	{ Declarations shared with jchuff.c }
 
 
-{$I jconfig.inc}
 
 
 { Module initialization routine for progressive Huffman entropy encoding. }
 { Module initialization routine for progressive Huffman entropy encoding. }
 
 

+ 1 - 1
packages/base/pasjpeg/jdcoefct.pas

@@ -9,6 +9,7 @@ Unit JDCoefCt;
   Also, the input side (only) is used when reading a file for transcoding. }
   Also, the input side (only) is used when reading a file for transcoding. }
 
 
 { Original: jdcoefct.c ; Copyright (C) 1994-1997, Thomas G. Lane. }
 { Original: jdcoefct.c ; Copyright (C) 1994-1997, Thomas G. Lane. }
+{$I jconfig.inc}
 
 
 interface
 interface
 
 
@@ -20,7 +21,6 @@ uses
   jutils,
   jutils,
   jpeglib;
   jpeglib;
 
 
-{$I jconfig.inc}
 
 
 {GLOBAL}
 {GLOBAL}
 procedure jinit_d_coef_controller (cinfo : j_decompress_ptr;
 procedure jinit_d_coef_controller (cinfo : j_decompress_ptr;

+ 2 - 1
packages/base/pasjpeg/jdpostct.pas

@@ -12,6 +12,8 @@ Unit JdPostCt;
   An integrated upsample/convert/quantize process would replace this module
   An integrated upsample/convert/quantize process would replace this module
   entirely. }
   entirely. }
 
 
+{$I jconfig.inc}
+
 interface
 interface
 
 
 uses
 uses
@@ -22,7 +24,6 @@ uses
   jutils,
   jutils,
   jpeglib;
   jpeglib;
 
 
-{$I jconfig.inc}
 
 
 { Initialize postprocessing controller. }
 { Initialize postprocessing controller. }
 
 

+ 1 - 0
packages/base/pasjpeg/jerror.pas

@@ -9,6 +9,7 @@ Unit Jerror;
 
 
 { Source: jerror.c;  Copyright (C) 1991-1996, Thomas G. Lane. }
 { Source: jerror.c;  Copyright (C) 1991-1996, Thomas G. Lane. }
 { note: format_message still contains a hack }
 { note: format_message still contains a hack }
+{$i jconfig.inc}
 interface
 interface
 
 
 uses
 uses

+ 2 - 1
packages/base/pasjpeg/jquant1.pas

@@ -8,10 +8,11 @@ Unit JQuant1;
 
 
 interface
 interface
 
 
+{$I jconfig.inc}
+
 uses
 uses
   jpeglib;
   jpeglib;
 
 
-{$I jconfig.inc}
 
 
 {GLOBAL}
 {GLOBAL}
 procedure jinit_1pass_quantizer (cinfo : j_decompress_ptr);
 procedure jinit_1pass_quantizer (cinfo : j_decompress_ptr);