Line data Source code
1 : /** 2 : Copyright (c) 2023 Stappler LLC <admin@stappler.dev> 3 : 4 : Permission is hereby granted, free of charge, to any person obtaining a copy 5 : of this software and associated documentation files (the "Software"), to deal 6 : in the Software without restriction, including without limitation the rights 7 : to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 : copies of the Software, and to permit persons to whom the Software is 9 : furnished to do so, subject to the following conditions: 10 : 11 : The above copyright notice and this permission notice shall be included in 12 : all copies or substantial portions of the Software. 13 : 14 : THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 : IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 : FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 : AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 : LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 : OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 : THE SOFTWARE. 21 : **/ 22 : 23 : #include "XLCommon.h" 24 : #include "XLPlatform.h" 25 : 26 : #include "XLViewCommandLine.cc" 27 : 28 : #if LINUX 29 : #include "linux/thirdparty/glfw/xkb_unicode.cc" 30 : #include "linux/XLPlatformLinuxDbus.cc" 31 : #include "linux/XLPlatformLinuxXkb.cc" 32 : #include "linux/XLPlatformLinuxWayland.cc" 33 : #include "linux/XLPlatformLinuxWaylandView.cc" 34 : #include "linux/XLPlatformLinuxXcb.cc" 35 : #include "linux/XLPlatformLinuxXcbView.cc" 36 : 37 : namespace STAPPLER_VERSIONIZED stappler::xenolith::platform { 38 : 39 75 : core::ImageFormat getCommonFormat() { 40 75 : return core::ImageFormat::B8G8R8A8_UNORM; 41 : } 42 : 43 : } 44 : 45 : #endif 46 : 47 : #if WIN32 48 : 49 : namespace STAPPLER_VERSIONIZED stappler::xenolith::platform { 50 : 51 : core::ImageFormat getCommonFormat() { 52 : return core::ImageFormat::B8G8R8A8_UNORM; 53 : } 54 : 55 : } 56 : 57 : #include "win32/XLPlatformWin32Library.cc" 58 : #include "win32/XLPlatformWin32View.cc" 59 : 60 : #endif 61 : 62 : #if ANDROID 63 : #include "android/XLPlatformAndroid.cc" 64 : #include "android/XLPlatformAndroidActivity.cc" 65 : #include "android/XLPlatformAndroidClassLoader.cc" 66 : #include "android/XLPlatformAndroidMessageInterface.cc" 67 : #include "android/XLPlatformAndroidNetworkConnectivity.cc" 68 : #endif