+
Skip to content

Sync'ed dependencies in csproj/gir/Module.cs #875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/Libs/Adw-1/Adw-1.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\Gtk-4.0\Gtk-4.0.csproj" />
</ItemGroup>

<PropertyGroup>
<PackageId>GirCore.Adw-1</PackageId>
<RootNamespace>Adw</RootNamespace>
<Description>C# bindings for libadwaita.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Gio-2.0\Gio-2.0.csproj" />
<ProjectReference Include="..\Gtk-4.0\Gtk-4.0.csproj" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions src/Libs/Adw-1/Public/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public static void Initialize()
if (IsInitialized)
return;

Gio.Module.Initialize();
Gtk.Module.Initialize();

Internal.ImportResolver.RegisterAsDllImportResolver();
Expand Down
18 changes: 9 additions & 9 deletions src/Libs/GObject-2.0/GObject-2.0.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>GirCore.GObject-2.0</PackageId>
<RootNamespace>GObject</RootNamespace>
<Description>C# bindings for GObject.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\GLib-2.0\GLib-2.0.csproj" />
</ItemGroup>

<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>GObject-2.0.Tests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\GLib-2.0\GLib-2.0.csproj" />
</ItemGroup>

<PropertyGroup>
<PackageId>GirCore.GObject-2.0</PackageId>
<RootNamespace>GObject</RootNamespace>
<Description>C# bindings for GObject.</Description>
</PropertyGroup>
</Project>
14 changes: 7 additions & 7 deletions src/Libs/Gdk-4.0/Gdk-4.0.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>GirCore.Gdk-4.0</PackageId>
<RootNamespace>Gdk</RootNamespace>
<Description>C# bindings for Gdk.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\cairo-1.0\cairo-1.0.csproj" />
<ProjectReference Include="..\GdkPixbuf-2.0\GdkPixbuf-2.0.csproj" />
<ProjectReference Include="..\Gio-2.0\Gio-2.0.csproj" />
<ProjectReference Include="..\GObject-2.0\GObject-2.0.csproj" />
<ProjectReference Include="..\Pango-1.0\Pango-1.0.csproj" />
<ProjectReference Include="..\PangoCairo-1.0\PangoCairo-1.0.csproj" />
</ItemGroup>

<PropertyGroup>
<PackageId>GirCore.Gdk-4.0</PackageId>
<RootNamespace>Gdk</RootNamespace>
<Description>C# bindings for Gdk.</Description>
</PropertyGroup>
</Project>
12 changes: 8 additions & 4 deletions src/Libs/Gdk-4.0/Public/Module.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Runtime.InteropServices;
using System.Runtime.InteropServices;
using System.Threading;

namespace Gdk;
Expand All @@ -12,15 +12,19 @@ public static void Initialize()
if (IsInitialized)
return;

GObject.Module.Initialize();
Cairo.Module.Initialize();
GdkPixbuf.Module.Initialize();
Gio.Module.Initialize();
Pango.Module.Initialize();
PangoCairo.Module.Initialize();

Internal.ImportResolver.RegisterAsDllImportResolver();
Internal.TypeRegistration.RegisterTypes();

// On Windows, GDK requires the main thread's apartment state to be STA.
// On Windows, GDK requires the main thread's apartment state to be STA.
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
// In order to successfully switch from MTA to STA, it is necessary
// In order to successfully switch from MTA to STA, it is necessary
// to first set it to Unknown.
Thread.CurrentThread.SetApartmentState(ApartmentState.Unknown);
Thread.CurrentThread.SetApartmentState(ApartmentState.STA);
Expand Down
9 changes: 4 additions & 5 deletions src/Libs/GdkPixbuf-2.0/GdkPixbuf-2.0.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\Gio-2.0\Gio-2.0.csproj" />
<ProjectReference Include="..\GObject-2.0\GObject-2.0.csproj" />
</ItemGroup>

<PropertyGroup>
<PackageId>GirCore.GdkPixbuf-2.0</PackageId>
<RootNamespace>GdkPixbuf</RootNamespace>
<Description>C# bindings for GdkPixbuf.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Gio-2.0\Gio-2.0.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/Libs/GdkPixbuf-2.0/Public/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public static void Initialize()
if (IsInitialized)
return;

GObject.Module.Initialize();
Gio.Module.Initialize();

Internal.ImportResolver.RegisterAsDllImportResolver();
Internal.TypeRegistration.RegisterTypes();
Expand Down
1 change: 0 additions & 1 deletion src/Libs/Gio-2.0/Gio-2.0.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<PackageId>GirCore.Gio-2.0</PackageId>
<RootNamespace>Gio</RootNamespace>
Expand Down
1 change: 0 additions & 1 deletion src/Libs/Graphene-1.0/Graphene-1.0.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<PackageId>GirCore.Graphene-1.0</PackageId>
<RootNamespace>Graphene</RootNamespace>
Expand Down
10 changes: 5 additions & 5 deletions src/Libs/Gsk-4.0/Gsk-4.0.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\Gdk-4.0\Gdk-4.0.csproj" />
<ProjectReference Include="..\Graphene-1.0\Graphene-1.0.csproj" />
</ItemGroup>

<PropertyGroup>
<PackageId>GirCore.Gsk-4.0</PackageId>
<RootNamespace>Gdk</RootNamespace>
<Description>C# bindings for Gsk.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Gdk-4.0\Gdk-4.0.csproj" />
<ProjectReference Include="..\Graphene-1.0\Graphene-1.0.csproj" />
</ItemGroup>
</Project>
3 changes: 3 additions & 0 deletions src/Libs/Gsk-4.0/Public/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ public static void Initialize()
if (IsInitialized)
return;

Gdk.Module.Initialize();
Graphene.Module.Initialize();

Internal.ImportResolver.RegisterAsDllImportResolver();
Internal.TypeRegistration.RegisterTypes();

Expand Down
2 changes: 1 addition & 1 deletion src/Libs/Gst-1.0/Gst-1.0.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<PackageId>GirCore.Gst-1.0</PackageId>
<RootNamespace>Gst</RootNamespace>
<Description>C# bindings for GStreamer.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\GLib-2.0\GLib-2.0.csproj" />
<ProjectReference Include="..\GObject-2.0\GObject-2.0.csproj" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions src/Libs/Gst-1.0/Public/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public static void Initialize()
return;

GObject.Module.Initialize();
GLib.Module.Initialize();

Internal.ImportResolver.RegisterAsDllImportResolver();
Internal.TypeRegistration.RegisterTypes();
Expand Down
12 changes: 6 additions & 6 deletions src/Libs/GstAudio-1.0/GstAudio-1.0.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>GirCore.GstAudio-1.0</PackageId>
<RootNamespace>GstAudio</RootNamespace>
<Description>C# bindings for GStreamer.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\GObject-2.0\GObject-2.0.csproj" />
<ProjectReference Include="..\GLib-2.0\GLib-2.0.csproj" />
<ProjectReference Include="..\Gst-1.0\Gst-1.0.csproj" />
<ProjectReference Include="..\GstBase-1.0\GstBase-1.0.csproj" />
</ItemGroup>

<PropertyGroup>
<PackageId>GirCore.GstAudio-1.0</PackageId>
<RootNamespace>GstAudio</RootNamespace>
<Description>C# bindings for GStreamer.</Description>
</PropertyGroup>
</Project>
5 changes: 5 additions & 0 deletions src/Libs/GstAudio-1.0/Public/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ public static void Initialize()
if (IsInitialized)
return;

GObject.Module.Initialize();
GLib.Module.Initialize();
Gst.Module.Initialize();
GstBase.Module.Initialize();

Internal.ImportResolver.RegisterAsDllImportResolver();
Internal.TypeRegistration.RegisterTypes();

Expand Down
11 changes: 5 additions & 6 deletions src/Libs/GstBase-1.0/GstBase-1.0.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>GirCore.GstBase-1.0</PackageId>
<RootNamespace>GstBase</RootNamespace>
<Description>C# bindings for GStreamer.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\GLib-2.0\GLib-2.0.csproj" />
<ProjectReference Include="..\GObject-2.0\GObject-2.0.csproj" />
<ProjectReference Include="..\Gst-1.0\Gst-1.0.csproj" />
</ItemGroup>

<PropertyGroup>
<PackageId>GirCore.GstBase-1.0</PackageId>
<RootNamespace>GstBase</RootNamespace>
<Description>C# bindings for GStreamer.</Description>
</PropertyGroup>
</Project>
4 changes: 4 additions & 0 deletions src/Libs/GstBase-1.0/Public/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ public static void Initialize()
if (IsInitialized)
return;

GObject.Module.Initialize();
GLib.Module.Initialize();
Gst.Module.Initialize();

Internal.ImportResolver.RegisterAsDllImportResolver();
Internal.TypeRegistration.RegisterTypes();

Expand Down
1 change: 0 additions & 1 deletion src/Libs/GstPbutils-1.0/GstPbutils-1.0.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<ProjectReference Include="..\GObject-2.0\GObject-2.0.csproj" />
<ProjectReference Include="..\Gst-1.0\Gst-1.0.csproj" />
<ProjectReference Include="..\GstAudio-1.0\GstAudio-1.0.csproj" />
<ProjectReference Include="..\GstBase-1.0\GstBase-1.0.csproj" />
Expand Down
5 changes: 5 additions & 0 deletions src/Libs/GstPbutils-1.0/Public/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ public static void Initialize()
if (IsInitialized)
return;

Gst.Module.Initialize();
GstBase.Module.Initialize();
GstAudio.Module.Initialize();
GstVideo.Module.Initialize();

Internal.ImportResolver.RegisterAsDllImportResolver();
Internal.TypeRegistration.RegisterTypes();

Expand Down
13 changes: 5 additions & 8 deletions src/Libs/GstVideo-1.0/GstVideo-1.0.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<ProjectReference Include="..\GLib-2.0\GLib-2.0.csproj" />
<ProjectReference Include="..\GObject-2.0\GObject-2.0.csproj" />
<ProjectReference Include="..\Gst-1.0\Gst-1.0.csproj" />
<ProjectReference Include="..\GstBase-1.0\GstBase-1.0.csproj" />
</ItemGroup>

<PropertyGroup>
<PackageId>GirCore.GstVideo-1.0</PackageId>
<RootNamespace>GstVideo</RootNamespace>
<Description>C# bindings for GStreamer.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Gst-1.0\Gst-1.0.csproj" />
<ProjectReference Include="..\GstBase-1.0\GstBase-1.0.csproj" />
</ItemGroup>
</Project>
3 changes: 3 additions & 0 deletions src/Libs/GstVideo-1.0/Public/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ public static void Initialize()
if (IsInitialized)
return;

Gst.Module.Initialize();
GstBase.Module.Initialize();

Internal.ImportResolver.RegisterAsDllImportResolver();
Internal.TypeRegistration.RegisterTypes();

Expand Down
10 changes: 5 additions & 5 deletions src/Libs/Gtk-4.0/Gtk-4.0.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\Gdk-4.0\Gdk-4.0.csproj" />
<ProjectReference Include="..\Gsk-4.0\Gsk-4.0.csproj" />
</ItemGroup>

<PropertyGroup>
<PackageId>GirCore.Gtk-4.0</PackageId>
<RootNamespace>Gtk</RootNamespace>
<Description>C# bindings for Gtk.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Gdk-4.0\Gdk-4.0.csproj" />
<ProjectReference Include="..\Gsk-4.0\Gsk-4.0.csproj" />
</ItemGroup>
</Project>
4 changes: 1 addition & 3 deletions src/Libs/Gtk-4.0/Public/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ public static void Initialize()
if (IsInitialized)
return;

Gio.Module.Initialize();
GdkPixbuf.Module.Initialize();
Gdk.Module.Initialize();
Cairo.Module.Initialize();
Gsk.Module.Initialize();

Internal.ImportResolver.RegisterAsDllImportResolver();
Internal.TypeRegistration.RegisterTypes();
Expand Down
8 changes: 4 additions & 4 deletions src/Libs/GtkSource-5/GtkSource-5.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\Gtk-4.0\Gtk-4.0.csproj" />
</ItemGroup>

<PropertyGroup>
<PackageId>GirCore.GtkSource-5</PackageId>
<RootNamespace>GtkSource</RootNamespace>
<Description>C# bindings for GtkSourceView.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Gtk-4.0\Gtk-4.0.csproj" />
</ItemGroup>
</Project>
11 changes: 5 additions & 6 deletions src/Libs/HarfBuzz-0.0/HarfBuzz-0.0.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\freetype2-2.0\freetype2-2.0.csproj" />
<ProjectReference Include="..\GLib-2.0\GLib-2.0.csproj" />
<ProjectReference Include="..\GObject-2.0\GObject-2.0.csproj" />
</ItemGroup>

<PropertyGroup>
<PackageId>GirCore.HarfBuzz-0.0</PackageId>
<RootNamespace>HarfBuzz</RootNamespace>
<Description>C# bindings for HarfBuzz.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\freetype2-2.0\freetype2-2.0.csproj" />
<ProjectReference Include="..\GObject-2.0\GObject-2.0.csproj" />
</ItemGroup>
</Project>
2 changes: 2 additions & 0 deletions src/Libs/HarfBuzz-0.0/Public/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public static void Initialize()
if (IsInitialized)
return;

GObject.Module.Initialize();

Internal.ImportResolver.RegisterAsDllImportResolver();
Internal.TypeRegistration.RegisterTypes();

Expand Down
8 changes: 4 additions & 4 deletions src/Libs/JavaScriptCore-5.0/JavaScriptCore-5.0.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\GObject-2.0\GObject-2.0.csproj" />
</ItemGroup>

<PropertyGroup>
<PackageId>GirCore.JavaScriptCore-5.0</PackageId>
<RootNamespace>JavaScriptCore</RootNamespace>
<Description>C# bindings for JavaScriptCore.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\GObject-2.0\GObject-2.0.csproj" />
</ItemGroup>
</Project>
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载