forked from xamarin/WebSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.win
More file actions
68 lines (45 loc) · 2.16 KB
/
Copy pathMakefile.win
File metadata and controls
68 lines (45 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
NACLSDK_TOOL=..\nacl_sdk\naclsdk
all:
@echo Usage:
@echo nmake buildRelease - builds the bindings for x86 (Win32) and x64 architectures - Release
@echo nmake buildDebug - builds the bindings for x86 (Win32) and x64 architecture - Debug
@echo nmake buildx64 - builds the bindings for x64 architecture - Release
@echo nmake buildx86 - builds the bindings for x86 (Win32) architecture - Release
@echo nmake buildx64Debug - builds the bindings for x64 architecture - Debug
@echo nmake buildx86Debug - builds the bindings for x86 (Win32) architecture - Debug
@echo nmake setup - sets up the environment for you
buildRelease:
@$(MAKE) /f ./Makefile.win buildx64
@$(MAKE) /f ./Makefile.win buildx86
cd .\electron-dotnet\tools\
build_peppersharp.bat Release
build_websharpjs.bat
buildDebug:
@$(MAKE) /f ./Makefile.win buildx64Debug
@$(MAKE) /f ./Makefile.win buildx86Debug
cd .\electron-dotnet\tools\
build_peppersharp.bat Debug
build_websharpjs.bat
buildx64:
cd .\PepperPlugin\src
set NACL_SDK_ROOT=..\..\..\nacl_sdk\pepper_canary\
msbuild PepperPlugin.sln /t:build /p:Platform=x64 /p:Configuration=Release
buildx86:
cd .\PepperPlugin\src
set NACL_SDK_ROOT=..\..\..\nacl_sdk\pepper_canary\
msbuild PepperPlugin.sln /t:build /p:Platform=x86 /p:Configuration=Release
buildx64Debug:
cd .\PepperPlugin\src
set NACL_SDK_ROOT=..\..\..\nacl_sdk\pepper_canary\
msbuild PepperPlugin.sln /t:build /p:Platform=x64 /p:Configuration=Debug
buildx86Debug:
cd .\PepperPlugin\src
set NACL_SDK_ROOT=..\..\..\nacl_sdk\pepper_canary\
msbuild PepperPlugin.sln /t:build /p:Platform=x86 /p:Configuration=Debug
check:
@if test ! -x $(NACLSDK_TOOL); then echo "You need to install the nacl_sdk on the parent directory, https://developer.chrome.com/native-client/sdk/download#installing-the-sdk"; exit 1; fi
@if $(NACLSDK_TOOL) list | grep -q 'I *pepper_canary'; then echo $?; else echo "You should install the pepper_canary support using $(NACLSDK_TOOL) update pepper_canary"; exit 1; fi
setup:
powershell -executionpolicy bypass -File .\setup.ps1
# Downloads the real SDK. This takes a while
..\nacl_sdk\naclsdk.bat update pepper_canary