• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:without +full:- +full:brotli

2   echo -e '\033[01;31mMaven is not installed / configured.\033[00m'
7 echo -e '\033[01;31mMono platform is not installed / configured.\033[00m'
12 echo -e '\033[01;31mNuGet compiler is not installed / configured.\033[00m'
17 echo -e '\033[01;31mC# compiler is not installed / configured.\033[00m'
21 rm -rf build
25 #-------------------------------------------------------------------------------
27 echo -e '\033[01;33mFetching Sharpen sources.\033[00m'
33 #-------------------------------------------------------------------------------
35 echo -e '\n\033[01;33mCompiling Sharpen.\033[00m'
37 mvn clean package -DskipTests
38 mvn dependency:copy -Dartifact=junit:junit:4.12 -DoutputDirectory=..
40 cp sharpen/target/sharpencore-0.0.1-SNAPSHOT-jar-with-dependencies.jar ./sharpen.jar
42 #-------------------------------------------------------------------------------
44 echo -e '\n\033[01;33mTranspiling.\033[00m'
47 java -jar build/sharpen.jar ../java/org/brotli/dec/ -cp build/junit-4.12.jar @sharpen.cfg
49 #-------------------------------------------------------------------------------
51 echo -e '\n\033[01;33mPatching.\033[00m'
54 cp -r build/generated/* ./
56 # Reflection does not work without Sharpen.cs
57 rm org/brotli/dec/EnumTest.cs
60 CODE=$(<org/brotli/dec/BrotliInputStream.cs)
62 echo "${CODE//$PATTERN/$REPLACEMENT}" > org/brotli/dec/BrotliInputStream.cs
64 #-------------------------------------------------------------------------------
66 echo -e '\n\033[01;33mDowloading dependencies.\033[00m'
69 nuget install NUnit -Version 3.6.1
70 nuget install NUnit.ConsoleRunner -Version 3.6.1
73 #-------------------------------------------------------------------------------
75 echo -e '\n\033[01;33mCompiling generated code.\033[00m'
77 SOURCES=`find org/brotli -type file ! -path "*Test.cs"`
78 TESTS_SOURCES=`find org/brotli -type file -path "*Test.cs"`
80 mcs $SOURCES -target:library -out:build/brotlidec.dll
81 mcs $SOURCES $TESTS_SOURCES -target:library -out:build/brotlidec_test.dll -r:build/NUnit.3.6.1/lib/…
83 #-------------------------------------------------------------------------------
85 echo -e '\n\033[01;33mRunning tests.\033[00m'
88 mono --debug build/NUnit.ConsoleRunner.3.6.1/tools/nunit3-console.exe build/brotlidec_test.dll
90 #-------------------------------------------------------------------------------
92 echo -e '\n\033[01;33mCleanup.\033[00m'
94 rm -rf build