17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 ext.LINUX = [:]
27
28 // Declare whether this particular target file applies to the current system
29 LINUX.canBuild = IS_LINUX;
30 if (!LINUX.canBuild) return;
31
32 // All desktop related packages should be built
33 LINUX.compileSwing = true;
34 LINUX.compileSWT = true;
35 LINUX.compileFXPackager = true;
36
37 // Libraries end up in the sdk/lib/$OS_ARCH directory for Linux
38 LINUX.libDest = "lib/$OS_ARCH"
39
40 // Lambda for naming the generated libs
41 LINUX.library = { name -> return "lib${name}.so" as String }
42
43 // A set of common parameters to use for both compiling and linking
44 def commonFlags = [
45 "-fno-strict-aliasing", "-fPIC", "-fno-omit-frame-pointer", // optimization flags
46 "-Wextra", "-Wall", "-Wno-unused", "-Wno-parentheses", "-Werror=implicit-function-declaration"] // warning flags
47
48 if (!IS_64) {
49 commonFlags += "-m32"
50 }
51
52 // Specify the compilation parameters and link parameters
53 def ccFlags = [
54 commonFlags, "-I$JDK_HOME/include", "-I$JDK_HOME/include/linux", "-c",
55 IS_DEBUG_NATIVE ? ["-ggdb", "-DVERBOSE"] : ["-O2", "-DNDEBUG"]].flatten()
56 //ccFlags.addAll(["-Wnon-virtual-dtor", "-Woverloaded-virtual", "-std=c++0x"])
57 def linkFlags = ["-shared", commonFlags].flatten()
58
|
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 ext.LINUX = [:]
27
28 // Declare whether this particular target file applies to the current system
29 LINUX.canBuild = IS_LINUX;
30 if (!LINUX.canBuild) return;
31
32 // All desktop related packages should be built
33 LINUX.compileSwing = true;
34 LINUX.compileSWT = true;
35 LINUX.compileFXPackager = true;
36
37 // Libraries end up in the lib/$OS_ARCH directory for Linux
38 LINUX.libDest = "lib/$OS_ARCH"
39 LINUX.modulesArch = "$OS_ARCH"
40
41 // Lambda for naming the generated libs
42 LINUX.library = { name -> return "lib${name}.so" as String }
43
44 // A set of common parameters to use for both compiling and linking
45 def commonFlags = [
46 "-fno-strict-aliasing", "-fPIC", "-fno-omit-frame-pointer", // optimization flags
47 "-Wextra", "-Wall", "-Wno-unused", "-Wno-parentheses", "-Werror=implicit-function-declaration"] // warning flags
48
49 if (!IS_64) {
50 commonFlags += "-m32"
51 }
52
53 // Specify the compilation parameters and link parameters
54 def ccFlags = [
55 commonFlags, "-I$JDK_HOME/include", "-I$JDK_HOME/include/linux", "-c",
56 IS_DEBUG_NATIVE ? ["-ggdb", "-DVERBOSE"] : ["-O2", "-DNDEBUG"]].flatten()
57 //ccFlags.addAll(["-Wnon-virtual-dtor", "-Woverloaded-virtual", "-std=c++0x"])
58 def linkFlags = ["-shared", commonFlags].flatten()
59
|