I don't think there
is a "meaning of life" in the sense of any objective, universally applicable meaning that we are all subject to. At least not at a level of abstraction that is useful. In my view, we are just biological machines that are the way we are because evolutionary adaptions over millions of years lead to a certain combination of genes propagating together to yield us.
So the "meaning of life" then? Well, I personally adhere to the idea that "the meaning of life is a life of meaning", where the big idea is that each of us get to choose what it means to live a "life of meaning." Maybe your choice is to believe that a "life of meaning" is to help the poor and needy by direct hands-on intervention, and so you join the Peace Corp or similar organisations, or spend your time volunteering at a local soup kitchen / homeless shelter / etc. That would be a perfectly reasonable choice I think. But OTOH, maybe you believe that a "life of meaning" means a life dedicated to the advancement of scientific knowledge, and so you dedicate your pursuits to Physics, or Electrical Engineering, or Cosmology, whatever. Equally valid choice IMO.
In fact, in my view, while some choices might seem less "good" to me, from the subjective point of view of the individual chooser, all choices are equally "valid".
Now I get that some people reject this kind of thinking for one reason or another. Some people don't like the idea that they are responsible for determining the meaning of their life... that may strike them as a pressure / responsibility that they never asked for, and don't want. Others may believe there is some external source of meaning that is applied to us all "from above" ("god" or some similar notion). In which case, I say it's fine to believe what you want, all I ask is that you don't try to force other people - who may not share your beliefs - to live their lives as though they are bound by your beliefs.