mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:02:43 +00:00 
			
		
		
		
	 565a880ce5
			
		
	
	
		565a880ce5
		
	
	
	
	
		
			
			This is partially a revert of commits:
    10a8b6d411
    561b67a1ad
Rather than adding the prot_exec pledge requried to use dlopen(), we can
link directly against LibUnicodeData in applications that we know need
that library.
This might make the dlopen() dance a bit unnecessary. The same purpose
might now be fulfilled with weak symbols. That can be revisted next, but
for now, this at least removes the potential security risk of apps like
the Browser having prot_exec privileges.
		
	
			
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			558 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			558 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| serenity_component(
 | |
|     TextEditor
 | |
|     RECOMMENDED
 | |
|     TARGETS TextEditor
 | |
|     DEPENDS ImageDecoder RequestServer WebContent FileSystemAccessServer
 | |
| )
 | |
| 
 | |
| compile_gml(TextEditorWindow.gml TextEditorWindowGML.h text_editor_window_gml)
 | |
| 
 | |
| set(SOURCES
 | |
|     main.cpp
 | |
|     FileArgument.cpp
 | |
|     MainWidget.cpp
 | |
|     TextEditorWindowGML.h
 | |
| )
 | |
| 
 | |
| serenity_app(TextEditor ICON app-text-editor)
 | |
| target_link_libraries(TextEditor LibWeb LibMarkdown LibGUI LibShell LibRegex LibDesktop LibCpp LibJS LibSQL LibFileSystemAccessClient LibConfig LibMain)
 | |
| link_with_unicode_data(TextEditor)
 |