Add GopherJS build constraints

This commit is contained in:
Milan Nikolic 2017-12-07 22:09:16 +01:00
parent 5db89e7c35
commit 9ddb7731e9
32 changed files with 49 additions and 17 deletions

View file

@ -1,4 +1,4 @@
// +build !noaudio
// +build !noaudio,!js
/**********************************************************************************************
*

View file

@ -1,4 +1,4 @@
// +build !noaudio
// +build !noaudio,!js
package raylib

View file

@ -1,4 +1,4 @@
// +build !android
// +build !android,!js
package raylib

View file

@ -1,3 +1,5 @@
// +build !js
package raylib
/*

View file

@ -1,4 +1,4 @@
// +build android
// +build android,!js
package raylib

View file

@ -1,4 +1,4 @@
// +build darwin
// +build darwin,!js
package raylib

View file

@ -1,4 +1,4 @@
// +build linux,!arm,!arm64
// +build linux,!arm,!arm64,!js
package raylib

View file

@ -1,4 +1,4 @@
// +build linux,arm,!android
// +build linux,arm,!android,!js
package raylib

View file

@ -1,4 +1,4 @@
// +build windows
// +build windows,!js
package raylib

View file

@ -1,3 +1,5 @@
// +build !js
/**********************************************************************************************
*
* raylib.core - Basic functions to manage windows, OpenGL context and input on multiple platforms

View file

@ -1,3 +1,5 @@
// +build !js
package raylib
/*

View file

@ -1,3 +1,5 @@
// +build !js
package raylib
/*

View file

@ -1,4 +1,6 @@
// +build !js
// The implementation of mini_al needs to #include windows.h which means it needs to go into
// it's own translation unit. Not doing this will cause conflicts with CloseWindow(), etc.
#define MAL_IMPLEMENTATION
#include "mini_al.h"
#include "mini_al.h"

View file

@ -1,3 +1,5 @@
// +build !js
/**********************************************************************************************
*
* raylib.models - Basic functions to deal with 3d shapes and 3d models

View file

@ -1,3 +1,5 @@
// +build !js
package raylib
/*

View file

@ -1,4 +1,4 @@
// +build android
// +build android,!js
#include "_cgo_export.h"

View file

@ -1,4 +1,4 @@
// +build android
// +build android,!js
package raylib

View file

@ -1,4 +1,4 @@
// +build !android,arm
// +build !android,arm,!js
package raylib

View file

@ -1,4 +1,4 @@
// +build !android,!arm
// +build !android,!arm,!js
package raylib

View file

@ -1,3 +1,5 @@
// +build !js
/**********************************************************************************************
*
* rlgl - raylib OpenGL abstraction layer

View file

@ -1,3 +1,5 @@
// +build !js
package raylib
/*

View file

@ -1,3 +1,5 @@
// +build !js
/**********************************************************************************************
*
* raylib.shapes - Basic functions to draw 2d Shapes and check collisions

View file

@ -1,3 +1,5 @@
// +build !js
package raylib
/*

View file

@ -1,3 +1,5 @@
// +build !js
/**********************************************************************************************
*
* raylib.text - Basic functions to load SpriteFonts and draw Text

View file

@ -1,3 +1,5 @@
// +build !js
package raylib
/*

View file

@ -1,3 +1,5 @@
// +build !js
/**********************************************************************************************
*
* raylib.textures - Basic functions to load and draw Textures (2d)

View file

@ -1,3 +1,5 @@
// +build !js
package raylib
/*

View file

@ -1,3 +1,5 @@
// +build !js
/**********************************************************************************************
*
* raylib.utils - Some common utility functions

View file

@ -1,4 +1,4 @@
// +build !android,!windows
// +build !android,!windows,!js
package raylib

View file

@ -1,4 +1,4 @@
// +build android
// +build android,!js
#include "_cgo_export.h"
#include <android/log.h>

View file

@ -1,4 +1,4 @@
// +build android
// +build android,!js
package raylib

View file

@ -1,4 +1,4 @@
// +build windows
// +build windows,!js
package raylib