Package com.badlogic.gdx.jnigen

Examples of com.badlogic.gdx.jnigen.NativeCodeGenerator


    System.arraycopy(b, 0, n, a.length, b.length);
    return n;
  }
 
  public static void main(String[] args) throws Exception {
    NativeCodeGenerator jniGen = new NativeCodeGenerator();
    jniGen.generate("src/", "bin/", "jni", new String[] { "**/GL.java", "**/AL.java", "**/ALC.java", "**/Glfw.java", "**/Memory.java" }, null);
   
    String[] commonSrc = {
      "glfw-3.0/src/clipboard.c",
      "glfw-3.0/src/context.c",
      "glfw-3.0/src/gamma.c",
View Full Code Here


    BuildTarget lin64 = BuildTarget.newDefaultTarget(TargetOs.Linux, true);
    BuildTarget android = BuildTarget.newDefaultTarget(TargetOs.Android, false);
    BuildTarget mac32 = BuildTarget.newDefaultTarget(TargetOs.MacOsX, false);
    BuildTarget mac64 = BuildTarget.newDefaultTarget(TargetOs.MacOsX, true);
    BuildTarget ios = BuildTarget.newDefaultTarget(TargetOs.IOS, false);
    new NativeCodeGenerator().generate("src", "bin" + File.pathSeparator + "../../../gdx/bin", "jni");
    new AntScriptGenerator().generate(new BuildConfig("gdx-box2d"), win32, win64, lin32, lin64, mac32, mac64, android, ios);   
  }
View Full Code Here

    System.arraycopy(b, 0, n, a.length, b.length);
    return n;
  }
 
  public static void main(String[] args) throws Exception {
    NativeCodeGenerator jniGen = new NativeCodeGenerator();
    jniGen.generate("src/", "bin/", "jni", new String[] { "**/GL.java", "**/AL.java", "**/ALC.java", "**/Glfw.java", "**/Memory.java" }, null);
   
    String[] commonSrc = {
      "glfw-3.0/src/clipboard.c",
      "glfw-3.0/src/context.c",
      "glfw-3.0/src/gamma.c",
View Full Code Here

import com.badlogic.gdx.jnigen.NativeCodeGenerator;
import com.badlogic.gdx.jnigen.BuildTarget.TargetOs;

public class DesktopControllersBuild {
  public static void main (String[] args) throws Exception {
    new NativeCodeGenerator().generate("src/", "bin/", "jni/");
    BuildConfig buildConfig = new BuildConfig("gdx-controllers-desktop");

    String[] windowsSrc = {"*.cpp", "ois-v1-4svn/src/*.cpp", "ois-v1-4svn/src/win32/*.cpp"};

    String[] linuxSrc = {"*.cpp", "ois-v1-4svn/src/*.cpp", "ois-v1-4svn/src/linux/*.cpp"};
 
View Full Code Here

    ios.headerDirs = headers;
    ios.cIncludes = sources;
    ios.cFlags += " -DFT2_BUILD_LIBRARY";
    ios.cppFlags += " -DFT2_BUILD_LIBRARY";

    new NativeCodeGenerator().generate();
    new AntScriptGenerator().generate(new BuildConfig("gdx-freetype"), win32home, win32, win64, lin32, lin64, mac, android, ios);
// BuildExecutor.executeAnt("jni/build-windows32home.xml", "-v clean");
// BuildExecutor.executeAnt("jni/build-windows32home.xml", "-v");
//    BuildExecutor.executeAnt("jni/build.xml", "pack-natives -v");
  }
View Full Code Here

    ios.headerDirs = headers;
    ios.cIncludes = sources;
    ios.cFlags += " -DFT2_BUILD_LIBRARY";
    ios.cppFlags += " -DFT2_BUILD_LIBRARY";

    new NativeCodeGenerator().generate();
    new AntScriptGenerator()
      .generate(new BuildConfig("gdx-freetype"), win32home, win32, win64, lin32, lin64, mac, mac64, android, ios);
// BuildExecutor.executeAnt("jni/build-windows32home.xml", "-v clean");
// BuildExecutor.executeAnt("jni/build-windows32home.xml", "-v");
// BuildExecutor.executeAnt("jni/build.xml", "pack-natives -v");
View Full Code Here

//    */
//  }
 
  public static void main(String[] args) throws Exception {
    // generate C/C++ code
    new NativeCodeGenerator().generate("src", "bin", "jni", new String[] { "**/MyJniClass.java" }, null);
   
    // generate build scripts, for win32 only
    BuildConfig buildConfig = new BuildConfig("test");
    BuildTarget win32 = BuildTarget.newDefaultTarget(TargetOs.Windows, false);
    win32.compilerPrefix = "";
View Full Code Here

    BuildTarget lin64 = BuildTarget.newDefaultTarget(TargetOs.Linux, true);
    BuildTarget android = BuildTarget.newDefaultTarget(TargetOs.Android, false);
    BuildTarget mac32 = BuildTarget.newDefaultTarget(TargetOs.MacOsX, false);
    BuildTarget mac64 = BuildTarget.newDefaultTarget(TargetOs.MacOsX, true);
    BuildTarget ios = BuildTarget.newDefaultTarget(TargetOs.IOS, false);
    new NativeCodeGenerator().generate();
    new AntScriptGenerator().generate(new BuildConfig("gdx-box2d"), win32, win64, lin32, lin64, mac32, mac64, android, ios);   
  }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.jnigen.NativeCodeGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.