mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 08:21:49 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| We install these frontend libraries in the `prepare` step.
 | |
| 
 | |
| --- a/CMakeLists.txt
 | |
| +++ b/CMakeLists.txt
 | |
| @@ -82,14 +82,7 @@ add_custom_command(OUTPUT index_html_size.h
 | |
|      COMMAND sh -c '( echo -n "\\#define INDEX_HTML_UNCOMPRESSED_SIZE " && wc -c < "${CMAKE_SOURCE_DIR}/src/resources/index.html" ) > index_html_size.h'
 | |
|      DEPENDS src/resources/index.html)
 | |
|  
 | |
| -# Download 3rd-party frontend JS libs...
 | |
| -file(DOWNLOAD https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.12/vue.min.js
 | |
| -	js/vue.min.js EXPECTED_MD5 fb192338844efe86ec759a40152fcb8e)
 | |
| -file(DOWNLOAD https://raw.githubusercontent.com/drudru/ansi_up/v4.0.4/ansi_up.js
 | |
| -        js/ansi_up.js EXPECTED_MD5 b31968e1a8fed0fa82305e978161f7f5)
 | |
| -file(DOWNLOAD https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js
 | |
| -        js/Chart.min.js EXPECTED_MD5 f6c8efa65711e0cbbc99ba72997ecd0e)
 | |
| -# ...and compile them
 | |
| +# Compile 3rd-party frontend JS libs...
 | |
|  generate_compressed_bins(${CMAKE_BINARY_DIR} js/vue.min.js
 | |
|      js/ansi_up.js js/Chart.min.js)
 | |
|  # (see resources.cpp where these are fetched)
 |