-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: If106dcb569cd1b7956b61539d8fa1b8fd008d685
- Loading branch information
1 parent
1b0bf8b
commit 16840f3
Showing
6,221 changed files
with
780,194 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@echo off | ||
if "%1" == "x64" goto WIN64 | ||
if "%1" == "x86" goto WIN32 | ||
if %PROCESSOR_ARCHITECTURE% == AMD64 goto WIN64 | ||
if %PROCESSOR_ARCHITEW6432% == AMD64 goto WIN64 | ||
:WIN32 | ||
echo We only support x64, please upgrade. | ||
exit /b 1 | ||
|
||
:WIN64 | ||
set FSL_GLES_EMULATOR_PATH=c:\Program Files\ARM\Mali Developer Tools\Mali OpenGL ES Emulator 3.0.2.g694a9 | ||
goto start | ||
|
||
:START | ||
set FSL_GLES_INCLUDE_PATH=%FSL_GLES_EMULATOR_PATH%\include | ||
set FSL_GLES_LIB_PATH=%FSL_GLES_EMULATOR_PATH% | ||
set FSL_GLES_LIB_EGL=libEGL.lib | ||
set FSL_GLES_LIB_GLES=libGLESv2.lib | ||
set FSL_GLES_NAME=ARM | ||
set PATH=%FSL_GLES_LIB_PATH%;%PATH% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@echo off | ||
set FSL_GLES_EMULATOR_PATH=c:\Imagination\PowerVR_Graphics | ||
set FSL_GLES_INCLUDE_PATH=%FSL_GLES_EMULATOR_PATH%\PowerVR_SDK\SDK_2016_R1.2\Builds\Include | ||
set FSL_GLES_LIB_PATH=%FSL_GLES_EMULATOR_PATH%\PowerVR_SDK\SDK_2016_R1.2\Builds\Windows\x86_64\Lib | ||
set FSL_GLES_DLL_PATH=%FSL_GLES_LIB_PATH% | ||
set FSL_GLES_LIB_EGL=libEGL.lib | ||
set FSL_GLES_LIB_GLES=libGLESv2.lib | ||
set FSL_GLES_NAME=PowerVR | ||
set PATH=%FSL_GLES_DLL_PATH%;%PATH% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@echo off | ||
set FSL_GLES_EMULATOR_PATH=c:\Imagination\PowerVR_Graphics | ||
set FSL_GLES_INCLUDE_PATH=%FSL_GLES_EMULATOR_PATH%\PowerVR_SDK\SDK_2016_R1.2\Builds\Include | ||
set FSL_GLES_LIB_PATH=%FSL_GLES_EMULATOR_PATH%\PowerVR_Tools\PVRVFrame\Library\Windows_x86_64 | ||
set FSL_GLES_DLL_PATH=%FSL_GLES_LIB_PATH% | ||
set FSL_GLES_LIB_EGL=libEGL.lib | ||
set FSL_GLES_LIB_GLES=libGLESv2.lib | ||
set FSL_GLES_NAME=PowerVR_Frame | ||
set PATH=%FSL_GLES_DLL_PATH%;%PATH% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@echo off | ||
set FSL_GLES_EMULATOR_PATH=c:\Imagination\PowerVR_Graphics | ||
set FSL_GLES_INCLUDE_PATH=%FSL_GLES_EMULATOR_PATH%\PowerVR_SDK\SDK_2016_R1.2\Builds\Include | ||
set FSL_GLES_LIB_PATH=%FSL_GLES_EMULATOR_PATH%\PowerVR_Tools\PVRVFrame\Library\Windows_x86_64 | ||
set FSL_GLES_DLL_PATH=%FSL_GLES_EMULATOR_PATH%\PowerVR_Tools\PVRTrace\Recorder\Windows_x86_64 | ||
set FSL_GLES_DLL_ORG_PATH=%FSL_GLES_EMULATOR_PATH%\PowerVR_Tools\PVRTrace\Recorder\Windows_x86_64 | ||
set FSL_GLES_LIB_EGL=libEGL.lib | ||
set FSL_GLES_LIB_GLES=libGLESv2.lib | ||
set FSL_GLES_NAME=PowerVR_Trace | ||
set PATH=%FSL_GLES_DLL_PATH%;%PATH% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@echo off | ||
set FSL_GLES_EMULATOR_PATH=c:\AdrenoSDK | ||
set FSL_GLES_INCLUDE_PATH=%FSL_GLES_EMULATOR_PATH%\Development\Inc | ||
set FSL_GLES_LIB_PATH=%FSL_GLES_EMULATOR_PATH%\Development\Lib\x64 | ||
set FSL_GLES_LIB_EGL=libEGL.lib | ||
set FSL_GLES_LIB_GLES=libGLESv2.lib | ||
set FSL_GLES_NAME=Qualcomm | ||
set PATH=%FSL_GLES_LIB_PATH%;%PATH% | ||
set path=%FSL_GLES_EMULATOR_PATH%\Bin;%FSL_GLES_EMULATOR_PATH%\Bin\x64;%path% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@echo off | ||
set FSL_GLES_EMULATOR_PATH=c:\AdrenoSDK | ||
set FSL_GLES_INCLUDE_PATH=%FSL_GLES_EMULATOR_PATH%\Development\Inc | ||
set FSL_GLES_LIB_PATH=%FSL_GLES_EMULATOR_PATH%\Development\Lib\x64 | ||
set FSL_GLES_LIB_EGL=libEGL_d.lib | ||
set FSL_GLES_LIB_GLES=libGLESv2_d.lib | ||
set FSL_GLES_NAME=Qualcomm | ||
set PATH=%FSL_GLES_LIB_PATH%;%PATH% | ||
set path=%FSL_GLES_EMULATOR_PATH%\Bin_d;%FSL_GLES_EMULATOR_PATH%\Bin_d\x64;%path% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@echo off | ||
if "%1" == "x64" goto WIN64 | ||
if "%1" == "x86" goto WIN32 | ||
if %PROCESSOR_ARCHITECTURE% == AMD64 goto WIN64 | ||
if %PROCESSOR_ARCHITEW6432% == AMD64 goto WIN64 | ||
:WIN32 | ||
echo Win(x86) | ||
echo We only support x64, please upgrade. | ||
exit /b 1 | ||
goto START | ||
|
||
:WIN64 | ||
echo Win(x64) | ||
set FSL_GLES_EMULATOR_PATH=c:\Program Files (x86)\Vivante\vEmulator\x64 | ||
goto start | ||
|
||
:START | ||
set PATH=%FSL_GLES_EMULATOR_PATH%\bin;%PATH% | ||
set FSL_GLES_INCLUDE_PATH=%FSL_GLES_EMULATOR_PATH%\inc | ||
set FSL_GLES_LIB_PATH=%FSL_GLES_EMULATOR_PATH%\lib | ||
set FSL_GLES_LIB_EGL=libEGL.lib | ||
set FSL_GLES_LIB_GLES=libGLESv2.lib | ||
set FSL_GLES_NAME=VIVANTE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@echo off | ||
set FSL_GLES_EMULATOR_PATH=%FSL_GRAPHICS_SDK%\ThirdParty\Precompiled\openvg1.1-ri | ||
set FSL_GLES_INCLUDE_PATH=%FSL_GLES_EMULATOR_PATH%\include | ||
set FSL_GLES_LIB_PATH=%FSL_GLES_EMULATOR_PATH%\lib | ||
set FSL_GLES_LIB_EGL=libEGL.lib | ||
set FSL_GLES_LIB_GLES=libOpenVG.lib | ||
set FSL_GLES_NAME=Reference | ||
set path=%FSL_GLES_EMULATOR_PATH%;%path% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
call %FSL_GRAPHICS_SDK%\.Config\ConfigureOpenGLES.bat %* | ||
echo EGL for OpenGLES using emulation: %FSL_GLES_NAME% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@echo off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@echo off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
@echo off | ||
if defined FSL_GLES_NAME goto EXIT | ||
if [%1]==[] goto BACKEND_AUTO_SELECT | ||
if /i %1==arm goto BACKEND_ARM | ||
if /i %1==powervr goto BACKEND_POWERVR | ||
if /i %1==powervr_frame goto BACKEND_POWERVR_FRAME | ||
if /i %1==powervr_trace goto BACKEND_POWERVR_TRACE | ||
if /i %1==qualcomm goto BACKEND_QUALCOMM | ||
if /i %1==vivante goto BACKEND_VIVANTE | ||
|
||
:BACKEND_AUTO_SELECT | ||
goto BACKEND_ARM | ||
|
||
:BACKEND_ARM | ||
call %FSL_GRAPHICS_SDK%\.Config\Configure\ConfigureOpenGLES_Arm.bat | ||
goto EXIT | ||
|
||
:BACKEND_POWERVR | ||
call %FSL_GRAPHICS_SDK%\.Config\Configure\ConfigureOpenGLES_PowerVR.bat | ||
goto EXIT | ||
|
||
:BACKEND_POWERVR_FRAME | ||
call %FSL_GRAPHICS_SDK%\.Config\Configure\ConfigureOpenGLES_PowerVR_Frame.bat | ||
goto EXIT | ||
|
||
:BACKEND_POWERVR_TRACE | ||
call %FSL_GRAPHICS_SDK%\.Config\Configure\ConfigureOpenGLES_PowerVR_Trace.bat | ||
goto EXIT | ||
|
||
:BACKEND_QUALCOMM | ||
call %FSL_GRAPHICS_SDK%\.Config\Configure\ConfigureOpenGLES_Qualcomm.bat | ||
goto EXIT | ||
|
||
:BACKEND_VIVANTE | ||
call %FSL_GRAPHICS_SDK%\.Config\Configure\ConfigureOpenGLES_Vivante.bat | ||
goto EXIT | ||
|
||
:EXIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
call %FSL_GRAPHICS_SDK%\.Config\ConfigureOpenGLES.bat %* | ||
echo OpenGL ES 2 emulation: %FSL_GLES_NAME% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
call %FSL_GRAPHICS_SDK%\.Config\ConfigureOpenGLES.bat %* | ||
echo OpenGL ES 3 emulation: %FSL_GLES_NAME% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@echo off | ||
if [%1]==[] goto BACKEND_AUTO_SELECT | ||
if /i %1==ref goto BACKEND_REF | ||
|
||
:BACKEND_AUTO_SELECT | ||
goto BACKEND_REF | ||
|
||
:BACKEND_REF | ||
call %FSL_GRAPHICS_SDK%\.Config\Configure\ConfigureOpenVG_Reference.bat | ||
goto EXIT | ||
|
||
:EXIT | ||
echo OpenVG emulation: %FSL_GLES_NAME% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@echo off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@echo off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@%FSL_GRAPHICS_SDK%\.Config\FslBuild.py %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
#!/usr/bin/env python | ||
|
||
#**************************************************************************************************************************************************** | ||
# Copyright (c) 2016 Freescale Semiconductor, Inc. | ||
# All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# | ||
# * Redistributions of source code must retain the above copyright notice, | ||
# this list of conditions and the following disclaimer. | ||
# | ||
# * Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# | ||
# * Neither the name of the Freescale Semiconductor, Inc. nor the names of | ||
# its contributors may be used to endorse or promote products derived from | ||
# this software without specific prior written permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, | ||
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE | ||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
# | ||
#**************************************************************************************************************************************************** | ||
|
||
#import cProfile | ||
#import pstats | ||
import argparse | ||
import sys | ||
from FslBuildGen import IOUtil, PluginConfig, ParseUtil, Util | ||
from FslBuildGen.Config import Config | ||
from FslBuildGen.Main import * | ||
from FslBuildGen.PlatformUtil import * | ||
from FslBuildGen.PackageListUtil import GetTopLevelPackage | ||
from FslBuildGen.Build import Builder | ||
from FslBuildGen.Tool import ToolProgramFlow | ||
from FslBuildGen.Tool.ToolProgramFlowConfig import ProgramFlowConfig | ||
|
||
|
||
def __GetTitle(): | ||
return 'FslBuild V0.7.3 beta' | ||
|
||
|
||
def ToolMain(funcGetTitle, args, currentDir, toolConfig, userTag): | ||
args.UseFeatures = ParseUtil.ParseFeatureList(args.UseFeatures) | ||
args.Variants = ParseUtil.ParseVariantDict(args.Variants) | ||
args.RequireFeatures = ParseUtil.ParseFeatureList(args.RequireFeatures) | ||
|
||
enableContentBuilder = ParseUtil.ParseBool(args.ContentBuilder) | ||
|
||
typeSdk = 'sdk' | ||
|
||
allowDevelopmentPlugins = True if args.dev else False | ||
config = Config(toolConfig, args.verbosity, args.type, args.Variants, allowDevelopmentPlugins) | ||
|
||
if args.DryRun: | ||
config.ForceDisableAllWrite() | ||
if args.IgnoreNotSupported: | ||
config.IgnoreNotSupported = True | ||
|
||
config.LogPrint(funcGetTitle()) | ||
|
||
# Get the platform and see if its supported | ||
platform = PluginConfig.GetGeneratorPluginById(args.platform) | ||
CheckBuildPlatform(platform.Name) | ||
|
||
config.LogPrint("Active platform: %s" % (platform.Name)) | ||
|
||
theFiles = DoGetFiles(config, currentDir) | ||
|
||
PluginConfig.SetVSVersion(args.VSVersion) | ||
PluginConfig.SetGeneratorType(args.GenType) | ||
|
||
packages = DoGenerateBuildFiles(config, theFiles, args.platform) | ||
|
||
topLevelPackage = GetTopLevelPackage(packages) | ||
|
||
requestedFiles = None if config.IsSDKBuild else theFiles | ||
|
||
# We need the generator to be able to examine its support | ||
generator = PluginConfig.GetGeneratorPluginById(args.platform) | ||
|
||
if args.ListFeatures or args.ListVariants: | ||
if args.ListFeatures: | ||
Builder.ShowFeatureList(topLevelPackage, requestedFiles) | ||
if args.ListVariants: | ||
Builder.ShowVariantList(topLevelPackage, requestedFiles, generator) | ||
else: | ||
Builder.BuildPackages(config, packages, platform.Name, requestedFiles, args.UseFeatures, args.RequireFeatures, args.Variants, args.RemainingArgs, args.ForAllExe, generator, enableContentBuilder) | ||
|
||
|
||
def __ParserAddCustomArguments(parser, userTag): | ||
parser.add_argument('-t', '--type', default=PluginConfig.TYPE_DEFAULT, choices=[PluginConfig.TYPE_DEFAULT, 'sdk'], help='Select generator type') | ||
parser.add_argument('--VSVersion', default=VisualStudioVersion.VS2015, help='Choose a specific visual studio version (2013,2015,2017)') | ||
parser.add_argument('--GenType', default="default", help='Chose the generator type to use (%s)' % (", ".join(PluginConfig.GENERATOR_TYPES.keys()))) | ||
parser.add_argument('-u', '--UseFeatures', default="*", help='The list of available features to build for. For example [OpenGLES2,OpenGLES3.1] or * for everything') | ||
parser.add_argument('-l', '--ListFeatures', action='store_true', help='List all features supported by build and exit') | ||
parser.add_argument('-r', '--RequireFeatures', default="*", help='The list of features that are required for a executable to be build. For example [OpenGLES2] to build all executables that use OpenGLES2.') | ||
parser.add_argument('--Variants', help='Configure the variants you wish to use for the build [WindowSystem=X11]') | ||
parser.add_argument('--ListVariants', action='store_true', help='List all variants supported by build and exit') | ||
parser.add_argument('--DryRun', action='store_true', help='Nothing will be build') | ||
parser.add_argument('--IgnoreNotSupported', action='store_true', help='try to build things that are marked as not supported') | ||
parser.add_argument('--ContentBuilder', default='on', help='Enable/disable the content builder') | ||
parser.add_argument('--ForAllExe', default=None, help='For each executable run the given command. (EXE) = the full path to the executable. (EXE_NAME) = name of the executable. (EXE_PATH) = the executables dir. (PACKAGE_PATH) = full path to package (CONTENT_PATH) = full path to package content directory. *Experimental*') | ||
|
||
|
||
def Main(): | ||
programFlowConfig = ProgramFlowConfig() | ||
programFlowConfig.AddPlatformArg = True | ||
programFlowConfig.ProcessRemainingArgs = True | ||
programFlowConfig.SupportBuildTime = True | ||
ToolProgramFlow.ProgramMain(__GetTitle, __ParserAddCustomArguments, ToolMain, programFlowConfig) | ||
|
||
|
||
Main() | ||
#cProfile.run('Main()', 'restats') | ||
#p = pstats.Stats('restats') | ||
#p.strip_dirs().sort_stats(-1).print_stats() | ||
#p.sort_stats('cumulative').print_stats(10) | ||
#p.sort_stats('time').print_stats(10) | ||
#p.sort_stats('tottime').print_stats(100) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@%FSL_GRAPHICS_SDK%\.Config\FslBuildCheck.py %* |
Oops, something went wrong.