mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Add a compiling guide
This commit is contained in:
parent
8926a70431
commit
29f4c429ec
3 changed files with 86 additions and 0 deletions
36
docs/Compiling.md
Normal file
36
docs/Compiling.md
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# How to compile my UXP fork (as of release 12.0)
|
||||
Step 0. INSTALL GIT FOR WINDOWS!!!!!
|
||||
|
||||
Step 1. If you are on Windows 8.1 or older, mount your installation media.
|
||||
|
||||
Step 2. Go Win+R and type 'optionalfeatures.exe' and check .NET 3.5
|
||||
|
||||
Step 3. Get the DirectX SDK (June 2010) from HERE: https://archive.org/details/dxsdk_jun10
|
||||
|
||||
Step 4. After that has installed, get MozillaBuild 3.2 from HERE: https://ftp.mozilla.org/pub/mozilla/libraries/win32/MozillaBuildSetup-3.2.exe
|
||||
|
||||
Step 5. After THAT has installed, you can commence onto installing the FWDK. First, get the .7z HERE: https://archive.org/details/funny-windows-development-kit
|
||||
|
||||
Step 6. Extract the FWDK to C:\Dev
|
||||
|
||||
Step 7. Move the start-shell-ewdk and start-shell-ewdk-x64 from this folder into c:\mozilla-build.
|
||||
|
||||
Step 8. Now that you have done all those prerequisites, open your start-shell-ewdk (64 if you want to build a 64 bit browser)
|
||||
|
||||
Step 9. Git clone this repo if you have not already
|
||||
|
||||
Step 10. CD into the directory of where your git clone is, and execute THESE commands:
|
||||
|
||||
``git config core.autocrlf false``
|
||||
|
||||
``git config core.eof lf``
|
||||
|
||||
``git rm --cached -r .``
|
||||
|
||||
``git reset --hard``
|
||||
|
||||
Step 11. Now that you have FINALLY done all those, you are now free to do a ``./mach build`` (isn't mozillabuild fun?)
|
||||
|
||||
Step 11.5. After the build, if you really feel fancy, you can test your build before packaging it with ``./mach run``
|
||||
|
||||
Step 12. Run ``./mach installer `` (64-bit only for now, sorry)
|
||||
25
docs/start-shell-ewdk-x64.bat
Normal file
25
docs/start-shell-ewdk-x64.bat
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
@ECHO OFF
|
||||
SET MOZ_MSVCBITS=64
|
||||
SET MOZ_MSVCVERSION=14
|
||||
SET MOZ_MSVCYEAR=2017
|
||||
SET VCDIR=C:\DEV\MSVC14\
|
||||
SET TOOLCHAIN=64-bit
|
||||
SET MOZILLABUILD=%~dp0
|
||||
SET MOZ_TOOLS=%MOZILLABUILD%moztools
|
||||
SET VSINSTALLDIR=C:\DEV\MSVC14
|
||||
SET VCINSTALLDIR=C:\DEV\MSVC14
|
||||
SET FrameworkDir32=C:\Windows\Microsoft.NET\Framework\
|
||||
SET FrameworkVersion32=v4.0.30319
|
||||
SET Framework40Version=v4.0.30319
|
||||
SET UCRTVersion=10.0.19041.0
|
||||
SET WindowsSDKLibVersion=10.0.19041.0\
|
||||
SET INCLUDE=C:\Dev\MSVC14\include;C:\Dev\MSVC14\atlmfc\include;C:\Dev\Windows Kits\10\include\shared;C:\Dev\Windows Kits\10\include\10.0.19041.0\um;C:\Dev\Windows Kits\10\include\10.0.19041.0\winrt;C:\Dev\Windows Kits\10\include\10.0.19041.0\ucrt;
|
||||
SET LIB=C:\Dev\MSVC14\lib\x64;C:\Dev\MSVC14\atlmfc\lib\x64;C:\Dev\Windows Kits\10\lib\10.0.19041.0\um\x64;C:\Dev\Windows Kits\10\lib\10.0.19041.0\ucrt\x64;
|
||||
SET LIBPATH=C:\Dev\MSVC14\lib\x64;C:\Dev\MSVC14\atlmfc\lib\x64;C:\Dev\Windows Kits\10\lib\10.0.19041.0\ucrt\x64;
|
||||
SET PATH=C:\Dev\MSVC14\bin\Hostx64\x64;C:\Dev\MSVC14\bin\Hostx64\x64;C:\Dev\Windows Kits\10\bin\10.0.19041.0\x64;%PATH%
|
||||
|
||||
SET SDKDIR=C:\Dev\Windows Kits\10\
|
||||
SET WINDOWSSDKDIR=C:\Dev\Windows Kits\10\
|
||||
set "UCRTContentRoot=%WDKContentRoot%"
|
||||
set "UniversalCRTSdkDir=%WDKContentRoot%"
|
||||
START %MOZILLABUILD%msys\bin\mintty -e %MOZILLABUILD%msys\bin\console %MOZILLABUILD%msys\bin\bash --login
|
||||
25
docs/start-shell-ewdk.bat
Normal file
25
docs/start-shell-ewdk.bat
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
@ECHO OFF
|
||||
SET MOZ_MSVCBITS=32
|
||||
SET MOZ_MSVCVERSION=14
|
||||
SET MOZ_MSVCYEAR=2017
|
||||
SET VCDIR=C:\DEV\MSVC14\
|
||||
SET TOOLCHAIN=32-bit
|
||||
SET MOZILLABUILD=%~dp0
|
||||
SET MOZ_TOOLS=%MOZILLABUILD%moztools
|
||||
SET VSINSTALLDIR=C:\DEV\MSVC14
|
||||
SET VCINSTALLDIR=C:\DEV\MSVC14
|
||||
SET FrameworkDir32=C:\Windows\Microsoft.NET\Framework\
|
||||
SET FrameworkVersion32=v4.0.30319
|
||||
SET Framework40Version=v4.0.30319
|
||||
SET UCRTVersion=10.0.19041.0
|
||||
SET WindowsSDKLibVersion=10.0.19041.0\
|
||||
SET INCLUDE=C:\Dev\MSVC14\include;C:\Dev\MSVC14\atlmfc\include;C:\Dev\Windows Kits\10\include\shared;C:\Dev\Windows Kits\10\include\10.0.19041.0\um;C:\Dev\Windows Kits\10\include\10.0.19041.0\winrt;C:\Dev\Windows Kits\10\include\10.0.19041.0\ucrt;
|
||||
SET LIB=C:\Dev\MSVC14\lib\x86;C:\Dev\MSVC14\atlmfc\lib\x86;C:\Dev\Windows Kits\10\lib\10.0.19041.0\um\x86;C:\Dev\Windows Kits\10\lib\10.0.19041.0\ucrt\x86;
|
||||
SET LIBPATH=C:\Dev\MSVC14\lib\x86;C:\Dev\MSVC14\atlmfc\lib\x86;C:\Dev\Windows Kits\10\lib\10.0.19041.0\ucrt\x86;
|
||||
SET PATH=C:\Dev\MSVC14\bin\Hostx64\x86;C:\Dev\MSVC14\bin\Hostx64\x64;C:\Dev\Windows Kits\10\bin\10.0.19041.0\x86;%PATH%
|
||||
|
||||
SET SDKDIR=C:\Dev\Windows Kits\10\
|
||||
SET WINDOWSSDKDIR=C:\Dev\Windows Kits\10\
|
||||
set "UCRTContentRoot=%WDKContentRoot%"
|
||||
set "UniversalCRTSdkDir=%WDKContentRoot%"
|
||||
START %MOZILLABUILD%msys\bin\mintty -e %MOZILLABUILD%msys\bin\console %MOZILLABUILD%msys\bin\bash --login
|
||||
Loading…
Add table
Add a link
Reference in a new issue