Skip to content

Commit 55c25a8

Browse files
committed
file recovery- finalising lunix
1 parent e20f63e commit 55c25a8

File tree

10 files changed

+2103
-0
lines changed

10 files changed

+2103
-0
lines changed

H264SharpNative/CMakeLists.txt

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# CMakeList.txt : Top-level CMake project file, do global configuration
2+
# and include sub-projects here.
3+
#
4+
cmake_minimum_required (VERSION 3.8)
5+
6+
# Enable Hot Reload for MSVC compilers if supported.
7+
if (POLICY CMP0141)
8+
cmake_policy(SET CMP0141 NEW)
9+
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
10+
endif()
11+
12+
# CMakeList.txt : CMake project for CMakeProject1, include source and define
13+
# project specific logic here.
14+
#
15+
add_definitions(-DUNICODE -D_UNICODE)
16+
add_compile_options(-Rpass=loop-vectorize)
17+
add_compile_options(-mavx2)
18+
add_compile_options(-o2)
19+
20+
21+
if(UNIX)
22+
# Set the C++ compiler only for UNIX systems (Linux and macOS)
23+
set(CMAKE_C_COMPILER "/usr/bin/clang-17")
24+
set(CMAKE_CXX_COMPILER "/usr/bin/clang++-17")
25+
else()
26+
set(CMAKE_C_COMPILER "clang-cl")
27+
set(CMAKE_CXX_COMPILER "clang-cl")
28+
endif()
29+
30+
# Add source to this project's executable.
31+
#add_executable (CMakeProject1 "CMakeProject1.cpp" "CMakeProject1.h")
32+
add_library (CMakeProject1 SHARED
33+
"CMakeProject1.cpp"
34+
"CMakeProject1.h"
35+
"codec_api.h"
36+
"codec_app_def.h"
37+
"codec_def.h"
38+
"codec_ver.h"
39+
"ConverterLocal.h"
40+
"Decoder.h"
41+
"EncodedFrame.h"
42+
"Encoder.h"
43+
"ImageTypes.h"
44+
"pch.h"
45+
"Resource.h"
46+
"TranscoderFactory.h"
47+
"ConverterLocal.cpp"
48+
"Decoder.cpp"
49+
"dllmain.cpp"
50+
"Encoder.cpp"
51+
"ImageTypes.cpp"
52+
"pch.cpp")
53+
54+
if (CMAKE_VERSION VERSION_GREATER 3.12)
55+
set_property(TARGET CMakeProject1 PROPERTY CXX_STANDARD 20)
56+
endif()
57+
58+
# TODO: Add tests and install targets if needed.

H264SharpNative/CMakeProject2.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// CMakeProject2.h : Include file for standard system include files,
2+
// or project specific include files.
3+
4+
#pragma once
5+
6+
#include <iostream>
7+
8+
// TODO: Reference additional headers your program requires here.

0 commit comments

Comments
 (0)