[DEV] replace 'include guard' with 'pragma once'
This commit is contained in:
parent
7a7c690a70
commit
6697410f05
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_CONTEXT_APPLICATION_H__
|
||||
#define __GALE_CONTEXT_APPLICATION_H__
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <etk/types.h>
|
||||
@ -210,5 +208,3 @@ namespace gale {
|
||||
virtual void onPeriod(int64_t _time) {};
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_DIMENSION_H__
|
||||
#define __GALE_DIMENSION_H__
|
||||
#pragma once
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <etk/types.h>
|
||||
@ -206,7 +204,5 @@ namespace gale {
|
||||
};
|
||||
std::ostream& operator <<(std::ostream& _os, enum gale::Dimension::distance _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const gale::Dimension& _obj);
|
||||
};
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_THREAD_H__
|
||||
#define __GALE_THREAD_H__
|
||||
#pragma once
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <etk/thread/tools.h>
|
||||
@ -58,7 +56,5 @@ namespace gale {
|
||||
protected:
|
||||
virtual bool onThreadCall() { return true; };
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_CONTEXT_H__
|
||||
#define __GALE_CONTEXT_H__
|
||||
#pragma once
|
||||
|
||||
#include <etk/os/Fifo.h>
|
||||
#include <etk/os/FSNode.h>
|
||||
@ -316,7 +314,5 @@ namespace gale {
|
||||
* @param[in] _thread generic C++11 thread handle
|
||||
*/
|
||||
void contextUnRegisterThread(std11::thread* _thread);
|
||||
};
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_FPS_H__
|
||||
#define __GALE_FPS_H__
|
||||
#pragma once
|
||||
|
||||
namespace gale {
|
||||
namespace context {
|
||||
@ -135,7 +133,6 @@ namespace gale {
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
};
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __MAC_OS_CONTEXT_H__
|
||||
#define __MAC_OS_CONTEXT_H__
|
||||
#pragma once
|
||||
|
||||
#include <gale/key/key.h>
|
||||
|
||||
@ -34,7 +32,5 @@ namespace IOs {
|
||||
void background();
|
||||
void resume();
|
||||
void suspend();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
#endif
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_MM_INTERFACE_H__
|
||||
#define __GALE_MM_INTERFACE_H__
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -21,4 +19,3 @@ void mm_openURL(const char *_url);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_SYSTEM_INPUT_H__
|
||||
#define __GALE_SYSTEM_INPUT_H__
|
||||
#pragma once
|
||||
|
||||
#include <gale/Application.h>
|
||||
|
||||
@ -99,8 +97,6 @@ namespace gale {
|
||||
m_specialKey = _specialKey;
|
||||
}
|
||||
};
|
||||
};
|
||||
};
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __MAC_OS_CONTEXT_H__
|
||||
#define __MAC_OS_CONTEXT_H__
|
||||
#pragma once
|
||||
|
||||
#include <gale/key/key.h>
|
||||
|
||||
@ -27,6 +25,5 @@ namespace MacOs {
|
||||
/*
|
||||
void setRedrawCallback(const std::function<void()>& _func);
|
||||
*/
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_MM_INTERFACE_H__
|
||||
#define __GALE_MM_INTERFACE_H__
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -20,5 +18,3 @@ void mm_stopApplication();
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_CLIPBOARD_H__
|
||||
#define __GALE_CLIPBOARD_H__
|
||||
#pragma once
|
||||
|
||||
#include <gale/debug.h>
|
||||
|
||||
@ -77,8 +75,4 @@ namespace gale {
|
||||
* @brief Debug operator To display the curent element in a Human redeable information
|
||||
*/
|
||||
std::ostream& operator <<(std::ostream& _os, const enum gale::context::clipBoard::clipboardListe _obj);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
}
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_COMMAND_LINE_H__
|
||||
#define __GALE_COMMAND_LINE_H__
|
||||
#pragma once
|
||||
|
||||
#include <gale/debug.h>
|
||||
|
||||
@ -42,7 +40,6 @@ namespace gale {
|
||||
*/
|
||||
void remove(int32_t _id);
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_CURSOR_H__
|
||||
#define __GALE_CURSOR_H__
|
||||
#pragma once
|
||||
|
||||
#include <gale/debug.h>
|
||||
|
||||
@ -41,8 +39,5 @@ namespace gale {
|
||||
* @brief Debug operator To display the curent element in a Human readable information
|
||||
*/
|
||||
std::ostream& operator <<(std::ostream& _os, const enum gale::context::cursor _obj);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_DEBUG_H__
|
||||
#define __GALE_DEBUG_H__
|
||||
#pragma once
|
||||
|
||||
#include <etk/log.h>
|
||||
|
||||
@ -40,5 +38,3 @@ namespace gale {
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_H__
|
||||
#define __GALE_H__
|
||||
#pragma once
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <gale/Application.h>
|
||||
@ -47,6 +45,5 @@ namespace gale {
|
||||
* @return the string of the mode of commpilation
|
||||
*/
|
||||
std::string getBoardType();
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_KEY_SPECIAL_H__
|
||||
#define __GALE_KEY_SPECIAL_H__
|
||||
#pragma once
|
||||
|
||||
#include <gale/debug.h>
|
||||
#include <gale/key/keyboard.h>
|
||||
@ -113,9 +111,6 @@ namespace gale {
|
||||
void update(enum gale::key::keyboard _move, bool _isDown);
|
||||
};
|
||||
std::ostream& operator <<(std::ostream& _os, const gale::key::Special& _obj);
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,15 +5,9 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_KEY_H__
|
||||
#define __GALE_KEY_H__
|
||||
#pragma once
|
||||
|
||||
#include <gale/key/keyboard.h>
|
||||
#include <gale/key/Special.h>
|
||||
#include <gale/key/status.h>
|
||||
#include <gale/key/type.h>
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_KEY_KEYBOARD_H__
|
||||
#define __GALE_KEY_KEYBOARD_H__
|
||||
#pragma once
|
||||
|
||||
#include <gale/debug.h>
|
||||
|
||||
@ -68,11 +66,6 @@ namespace gale {
|
||||
* @brief Debug operator To display the curent element in a Human redeable information
|
||||
*/
|
||||
std::ostream& operator <<(std::ostream& _os, const enum gale::key::keyboard _obj);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_KEY_STATUS_H__
|
||||
#define __GALE_KEY_STATUS_H__
|
||||
#pragma once
|
||||
|
||||
#include <gale/debug.h>
|
||||
|
||||
@ -38,11 +36,6 @@ namespace gale {
|
||||
* @brief Debug operator To display the curent element in a Human redeable information
|
||||
*/
|
||||
std::ostream& operator <<(std::ostream& _os, const enum gale::key::status _obj);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_KEY_TYPE_H__
|
||||
#define __GALE_KEY_TYPE_H__
|
||||
#pragma once
|
||||
|
||||
#include <gale/debug.h>
|
||||
|
||||
@ -22,15 +20,10 @@ namespace gale {
|
||||
type_finger, //!< Finger type
|
||||
type_stylet, //!< Stylet type
|
||||
};
|
||||
};
|
||||
}
|
||||
/**
|
||||
* @brief Debug operator To display the curent element in a Human redeable information
|
||||
*/
|
||||
std::ostream& operator <<(std::ostream& _os, const enum gale::key::type _obj);
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_ORIENTATION_H__
|
||||
#define __GALE_ORIENTATION_H__
|
||||
#pragma once
|
||||
|
||||
namespace gale {
|
||||
enum orientation {
|
||||
@ -17,6 +15,3 @@ namespace gale {
|
||||
};
|
||||
std::ostream& operator <<(std::ostream& _os, enum gale::orientation _obj);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __OPEN_GL_INCLUDE_H__
|
||||
#define __OPEN_GL_INCLUDE_H__
|
||||
#pragma once
|
||||
|
||||
extern "C" {
|
||||
#if defined(__TARGET_OS__Linux)
|
||||
@ -43,4 +41,3 @@ extern "C" {
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __OPEN_GL_H__
|
||||
#define __OPEN_GL_H__
|
||||
#pragma once
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <vector>
|
||||
@ -239,7 +237,5 @@ namespace gale {
|
||||
};
|
||||
std::ostream& operator <<(std::ostream& _os, const enum openGL::flag& _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const enum openGL::renderMode& _obj);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __RESOURCES_MANAGER_H__
|
||||
#define __RESOURCES_MANAGER_H__
|
||||
#pragma once
|
||||
|
||||
#include <list>
|
||||
#include <vector>
|
||||
@ -65,9 +63,6 @@ namespace gale {
|
||||
void localAdd(const std::shared_ptr<gale::Resource>& _object);
|
||||
virtual void cleanInternalRemoved();
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __OPEN_GL__PROGRAM_H__
|
||||
#define __OPEN_GL__PROGRAM_H__
|
||||
#pragma once
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <etk/math/Vector4D.h>
|
||||
@ -305,8 +303,6 @@ namespace gale {
|
||||
private:
|
||||
void checkGlError(const char* _op, int32_t _localLine, int32_t _idElem=-2);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,10 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __RESOURCES_H__
|
||||
#define __RESOURCES_H__
|
||||
#pragma once
|
||||
|
||||
#include <mutex>
|
||||
#include <memory>
|
||||
@ -212,9 +209,7 @@ namespace gale {
|
||||
*/
|
||||
static gale::resource::Manager& getManager();
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
#include <gale/resource/Manager.h>
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __OPEN_GL__SHADER_H__
|
||||
#define __OPEN_GL__SHADER_H__
|
||||
#pragma once
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <gale/debug.h>
|
||||
@ -71,8 +69,6 @@ namespace gale {
|
||||
*/
|
||||
void reload();
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __GALE_TEXTURE_H__
|
||||
#define __GALE_TEXTURE_H__
|
||||
#pragma once
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <gale/debug.h>
|
||||
@ -71,8 +69,6 @@ namespace gale {
|
||||
enum gale::resource::Texture::dataType _dataType,
|
||||
enum gale::resource::Texture::color _dataColorSpace);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,7 @@
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __OPEN_GL__VIRTUAL_BUFFER_OBJECT_H__
|
||||
#define __OPEN_GL__VIRTUAL_BUFFER_OBJECT_H__
|
||||
#pragma once
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <etk/math/Vector2D.h>
|
||||
@ -122,7 +120,6 @@ namespace gale {
|
||||
*/
|
||||
void reload();
|
||||
};
|
||||
};
|
||||
};
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -143,17 +143,17 @@ def create(target, module_name):
|
||||
|
||||
if target.name=="Linux":
|
||||
# todo : my_module.add_module_depend(['egami'])
|
||||
my_module.add_export_flag('link', '-lGL')
|
||||
my_module.add_export_flag('link-lib', 'GL')
|
||||
#`pkg-config --cflags directfb` `pkg-config --libs directfb`
|
||||
#ifeq ("$(CONFIG___GALE_LINUX_GUI_MODE_X11__)","y")
|
||||
my_module.add_export_flag('link', '-lX11')
|
||||
my_module.add_export_flag('link-lib', 'X11')
|
||||
#endif
|
||||
#ifeq ("$(CONFIG___GALE_LINUX_GUI_MODE_DIRECT_FB__)","y")
|
||||
#my_module.add_export_flag('link', ['-L/usr/local/lib', '-ldirectfb', '-lfusion', '-ldirect'])
|
||||
#endif
|
||||
elif target.name=="Android":
|
||||
my_module.add_module_depend(["SDK", "jvm-basics"])
|
||||
my_module.add_export_flag('link', "-lGLESv2")
|
||||
my_module.add_export_flag('link-lib', "GLESv2")
|
||||
# add tre creator of the basic java class ...
|
||||
target.add_action("BINARY", 50, "gale-auto-wrapper", tool_generate_main_java_class)
|
||||
# TODO : Add the same for BINARY to create a console interface ?
|
||||
|
Loading…
x
Reference in New Issue
Block a user