diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..4ab5e8d --- /dev/null +++ b/Android.bp @@ -0,0 +1,131 @@ +// Copyright(c) 2021 Intel Corporation + +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files(the "Software"), +// to deal in the Software without restriction, including without limitation +// the rights to use, copy, modify, merge, publish, distribute, sublicense, +// and / or sell copies of the Software, and to permit persons to whom the +// Software is furnished to do so, subject to the following conditions: + +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. + +cc_library_static { + + name: "libgmm_umd", + proprietary: true, + srcs: [ + "Source/GmmLib/CachePolicy/GmmCachePolicy.cpp", + "Source/GmmLib/CachePolicy/GmmCachePolicyCommon.cpp", + "Source/GmmLib/CachePolicy/GmmGen10CachePolicy.cpp", + "Source/GmmLib/CachePolicy/GmmGen11CachePolicy.cpp", + "Source/GmmLib/CachePolicy/GmmGen12CachePolicy.cpp", + "Source/GmmLib/CachePolicy/GmmGen12dGPUCachePolicy.cpp", + "Source/GmmLib/CachePolicy/GmmGen8CachePolicy.cpp", + "Source/GmmLib/CachePolicy/GmmGen9CachePolicy.cpp", + "Source/GmmLib/CachePolicy/GmmXe_LPGCachePolicy.cpp", + "Source/GmmLib/GlobalInfo/GmmClientContext.cpp", + "Source/GmmLib/GlobalInfo/GmmInfo.cpp", + "Source/GmmLib/GlobalInfo/GmmLibDllMain.cpp", + "Source/GmmLib/Platform/GmmGen10Platform.cpp", + "Source/GmmLib/Platform/GmmGen11Platform.cpp", + "Source/GmmLib/Platform/GmmGen12Platform.cpp", + "Source/GmmLib/Platform/GmmGen8Platform.cpp", + "Source/GmmLib/Platform/GmmGen9Platform.cpp", + "Source/GmmLib/Platform/GmmPlatform.cpp", + "Source/GmmLib/Resource/GmmResourceInfo.cpp", + "Source/GmmLib/Resource/GmmResourceInfoCommon.cpp", + "Source/GmmLib/Resource/GmmResourceInfoCommonEx.cpp", + "Source/GmmLib/Resource/GmmRestrictions.cpp", + "Source/GmmLib/Resource/Linux/GmmResourceInfoLinCWrapper.cpp", + "Source/GmmLib/Texture/GmmGen10Texture.cpp", + "Source/GmmLib/Texture/GmmGen11Texture.cpp", + "Source/GmmLib/Texture/GmmGen12Texture.cpp", + "Source/GmmLib/Texture/GmmGen7Texture.cpp", + "Source/GmmLib/Texture/GmmGen8Texture.cpp", + "Source/GmmLib/Texture/GmmGen9Texture.cpp", + "Source/GmmLib/Texture/GmmTexture.cpp", + "Source/GmmLib/Texture/GmmTextureAlloc.cpp", + "Source/GmmLib/Texture/GmmTextureOffset.cpp", + "Source/GmmLib/Texture/GmmTextureSpecialCases.cpp", + "Source/GmmLib/Texture/GmmXe_LPGTexture.cpp", + "Source/GmmLib/TranslationTable/GmmAuxTable.cpp", + "Source/GmmLib/TranslationTable/GmmPageTableMgr.cpp", + "Source/GmmLib/TranslationTable/GmmUmdTranslationTable.cpp", + "Source/GmmLib/Utility/CpuSwizzleBlt/CpuSwizzleBlt.c", + "Source/GmmLib/Utility/GmmLog/GmmLog.cpp", + "Source/GmmLib/Utility/GmmUtility.cpp", + "Source/Common/AssertTracer/AssertTracer.cpp", + "Source/GmmLib/ULT/GmmAuxTableULT.cpp", + "Source/GmmLib/ULT/GmmCachePolicyULT.cpp", + "Source/GmmLib/ULT/GmmCommonULT.cpp", + "Source/GmmLib/ULT/GmmGen10CachePolicyULT.cpp", + "Source/GmmLib/ULT/GmmGen10ResourceULT.cpp", + "Source/GmmLib/ULT/GmmGen11CachePolicyULT.cpp", + "Source/GmmLib/ULT/GmmGen11ResourceULT.cpp", + "Source/GmmLib/ULT/GmmGen12CachePolicyULT.cpp", + "Source/GmmLib/ULT/GmmGen12dGPUCachePolicyULT.cpp", + "Source/GmmLib/ULT/GmmGen12dGPUResourceULT.cpp", + "Source/GmmLib/ULT/GmmGen12ResourceULT.cpp", + "Source/GmmLib/ULT/GmmGen9CachePolicyULT.cpp", + "Source/GmmLib/ULT/GmmGen9ResourceULT.cpp", + "Source/GmmLib/ULT/GmmMultiAdapterULT.cpp", + "Source/GmmLib/ULT/GmmResourceCpuBltULT.cpp", + "Source/GmmLib/ULT/GmmResourceULT.cpp", + "Source/GmmLib/ULT/GmmULT.cpp", + "Source/GmmLib/ULT/GmmXe_LPGCachePolicyULT.cpp", + ], + + cflags: [ + "-Wno-error", + "-Wno-unused-parameter", + "-DGMM_LIB_DLL", + "-DGMM_LIB_DLL_EXPORTS", + "-DGMM_UNIFIED_LIB", + "-DGMM_UNIFY_DAF_API", + "-DISTDLIB_UMD", + "-DSMALL_POOL_ALLOC", + "-DUNUSED_ISTDLIB_MT", + "-D_ATL_NO_WIN_SUPPORT", + "-D_X64", + "-D__GFX_MACRO_C__", + "-D__GMM", + "-D__STDC_CONSTANT_MACROS", + "-D__STDC_LIMIT_MACROS", + "-D__UMD", + "-Digfx_gmmumd_dll_EXPORTS", + ], + + cppflags: [ + "-fexceptions", + "-std=c++11", + ], + + local_include_dirs: [ + "Source/GmmLib", + "Source/GmmLib/Utility/GmmLog", + "Source/GmmLib/Utility", + "Source/GmmLib/GlobalInfo", + "Source/GmmLib/Texture", + "Source/GmmLib/Resource", + "Source/GmmLib/Platform", + "Source/util", + "Source/inc/umKmInc", + "Source/GmmLib/ULT/googletest/gtest", + ], + + export_include_dirs: [ + "Source/GmmLib/inc", + "Source/inc", + "Source/inc/common", + ], + +}