Skip to content

Instantly share code, notes, and snippets.

View FlyingJester's full-sized avatar

Martin McDonough FlyingJester

View GitHub Profile
@FlyingJester
FlyingJester / engine.ini
Created April 14, 2014 21:25
Example config for Sphere 1.6
[Audio]
Driver=oss
Preference=0
[Main]
Language=1
[Network]
AllowNetworking=1
@FlyingJester
FlyingJester / WTF.c
Created April 16, 2014 21:51
Why is this happening?
/*
gcc -o plugins/Sapphire/primitives.os -c -std=c11 -Werror=return-type -Wno-unused-local-typedefs -Wall -Wno-pointer-arith -mtune=native -msse2 -flto -O2 -funroll-loops -Wcast-align -pg -g -DUSE_AMDLIBM -DHAS_ATOMIC -DHAS_THREAD -DHAS_MUTEX -DHAS_PTHREAD -fPIC -DUSE_INTEL_TBB plugins/Sapphire/primitives.c
In file included from plugins/Sapphire/primitives.h:20:0,
from plugins/Sapphire/primitives.c:1:
plugins/Sapphire/primitive_types.h:8:8: error: expected identifier or '(' before string constant
extern "C" {
*/
//THe File:
@FlyingJester
FlyingJester / primitve_types.h
Created April 16, 2014 21:53
The other part.
#ifndef SAPPHIRE_PRIMITIVE_TYPES_HEAD
#define SAPPHIRE_PRIMITIVE_TYPES_HEAD
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
@FlyingJester
FlyingJester / plugin.hpp
Created April 21, 2014 20:48
Plugin Tools Header
///////////////////////////////////////////////////////////////////////////////
/*
TurboSphere Plugin SDK
Copyright (c) 2012-2014 Martin McDonough.
All rights reserved.
# Add the correct paths here:
ac_add_options --with-android-ndk="$HOME/ff/android-ndk-r8e"
ac_add_options --with-android-sdk="$HOME/ff/adt-bundle-mac/sdk/platforms/android-17"
# android options
ac_add_options --enable-application=mobile/android
ac_add_options --target=arm-linux-androideabi
@FlyingJester
FlyingJester / GeneratedJNIWrappers_2.cpp
Last active August 29, 2015 14:02
GeneratedJNIWrappers_2.cpp
// GENERATED CODE
// Generated by the Java program at /build/jarClassProcessors at compile time from
// a given set of jars and a set of requested methods. To update, change the annotations
// on the corresponding Java methods and rerun the build. Manually updating this file
// will cause your build to fail.
#include "GeneratedJNIWrappers_2.h"
#include "AndroidBridgeUtilities.h"
#include "nsXPCOMStrings.h"
#include "AndroidBridge.h"
@FlyingJester
FlyingJester / GeneratedJNIWrappers_2.h
Last active August 29, 2015 14:02
GeneratedJNIWrappers_2.h
// GENERATED CODE
// Generated by the Java program at /build/jarClassProcessors at compile time from
// a given set of jars and a set of requested methods. To update, change the annotations
// on the corresponding Java methods and rerun the build. Manually updating this file
// will cause your build to fail.
#ifndef GeneratedJNIWrappers2_h__
#define GeneratedJNIWrappers2_h__
#include "nsXPCOMStrings.h"
Set sysroot to "/Users/mozilla/Downloads/jimdb-arm/lib/4d001d2908d2505d".
Updated solib-search-path.
Found package names:
org.mozilla.fennec_rbarker
org.mozilla.firefox
org.mozilla.firefox_beta
org.mozilla.fennec_mozilla
Use package (e.g. org.mozilla.fennec): org.mozilla.fennec_mozilla
Pulling apk for symbols... *** Could not find szip tool ***
@FlyingJester
FlyingJester / gist:909565e182008f26ed79
Last active August 29, 2015 14:02
Generating JNI Wrappers with jarClassProcessor.jar from Fennec root
java -classpath gecko-mozglue.jar:obj-arm-linux-androideabi/build/jarClassProcessors/jarClassProcessors.jar org.mozilla.gecko.jarClassProcessors.JarClassProcessor -j ../adt-bundle-mac/sdk/platforms/android-17/android.jar -c android.media.MediaCodec android.media.MediaFormat android.view.Surface
@FlyingJester
FlyingJester / gist:79ff5aef0aa10c6aa830
Last active August 29, 2015 14:02
New Directory Structure for TurboSphere
The current format:
/TurboSphere - all the things
/configmanager - Sources for config manager
/graphiccommon - Sources for graphic common structures
/graphicalg - Sources for graphic algorithms
/SDL2 - Headers for SDL2 on Windows
/osx - Mockup FS for includes on OS X
/GL - Mockup for OpenGL header includes.
/SDL2 - Mockup for SDL2 header includes